Forum Replies Created
-
AuthorPosts
-
October 31, 2019 at 12:59 am in reply to: Catalina and the change from ESTK to Visual Studio Code + Extendscript Debugger #14323823
Peter KahrelParticipantTerre — That book’s main purpose is to help people get a start with using the ESTK and the object model. And since I’m primarily a text-oriented person, that’s what most of the examples tended to be. The purpose of user forums is to get information about specific topics, so if you have any queries, please post them here. Another place to go to is Adobe’s forums (Adobe’s forums are still recovering from a Grand Forum Upgrade so for the moment they’re not as hospitable as they used to be).
P.
Peter KahrelParticipantMarc Autret has a script to do barcodes. Whether that one does pharma codes I don’t know, but you can ask him. http://www.indiscripts.com
P.
Peter KahrelParticipant> I believe that the method for getting a page’s “name” is simply thisPage.name
Correct: a page’s page number/folio is its name.
Peter KahrelParticipantInDesign’s treatment of Word’s footnotes has always been lousy. You can try saving the document in Word as DOC, not DOCX. That often produces better placed files in InDesign.
P.
October 30, 2019 at 2:03 am in reply to: Catalina and the change from ESTK to Visual Studio Code + Extendscript Debugger #14323835
Peter KahrelParticipantYou may think of the ESTK’s OMV what you will, but it’s the only one that shows the properties of scriptable plug-ins. Gregor’s OMV is a reflection of his computer. Theunis’s OMV shows whatever he has installed. If I want an OMV like theirs that shows my scriptable plug-ins as well, I have to build it myself using their tools. But I don’t have to, because the ESTK does it all for me! (For the time being, anyway.)
Peter KahrelParticipantYou don’t need a variable for that. You can use the word ‘Article’ in the Number field in the Numbering Style panel of the Bullets and Numbering tab, followed by the level character:
Article ^#
P.
Peter KahrelParticipantYou’re out of luck. This can be done only by very convoluted scripting. Same happens with footnotes. It’s one of the weaknesses of InDesign’s index feature. Please log a feature request at https://indesign.uservoice.com
P.
Peter KahrelParticipantSome text examples of verses, please.
Peter KahrelParticipantI read somewhere that there are considerable differences in how InDesign treats footnotes and endnotes depending on whether you’re placing a .doc file or a .docx one. So if you try .docx and the result is bad, open the file in Word and save it as .doc (or the other way round: if .doc doesn’t work right, try .docx)
Peter KahrelParticipantCould you give some examples of what you’re looking for?
Peter KahrelParticipantYou need the AppleScript equivalent of this JavaScript line:
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
Afterwards you have to re-enable alerts (which includes all InDesign’s panels and dialogs):
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
P.
Peter KahrelParticipantIt’s caused by the identical times. If you change 13:39 to any other time in ’13:39 Jane: No no it’s okay’ the problem doesn’t occur. But since you can do only every other line, not every line, the grep query is of limited use anyway. A script would probably be more useful.
Peter KahrelParticipantThis one:
^.+?(.+?:).+\r\K.+\1
Looks at names, not times. But it matches only the second identical name. You could do an expression that matches all, but because InDesign doesn’t allow non-contiguous selections, you wouldn’t be able to replace anything.
P.
Peter KahrelParticipantFind what: ^(.+? ).+\r\K\1
Replace with:P.
Peter KahrelParticipant> When I only do the footnote the number doesn’t show up. For instance, with this code below:
> var footnote = tf.footnotes.add(LocationOptions.AFTER, location)
> footnote.contents = text.toString()The number doesn’t show up because you delete it by replacing all the footnote content. You should add the text after the footnote number and the separator:
footnote.insertionPoints[-1].contents = ‘whatever’;
-
AuthorPosts
