Forum Replies Created
-
AuthorPosts
-
Ari Singer
MemberThe reason the script failed is because you probably copied the code from your email, and when you do that some characters don’t come through as they should. Try copying the code from my post directly, and try again.
Ari Singer
MemberThis can probably be done. But more details is needed, such as what is considered an ‘object’? Text frames, images, etc. And where do you want to output this info? To a text file, or on the page directly?
Ari Singer
MemberI believe ‘100%’ stands for the default kerning installed in the font.
P.S. Who provides the spell-checking for the site? Is it Google? Because I’m not impressed!
They flagged the word ‘kerning’. Really?! ‘Guesstimate’ is a word, and ‘kerning’ not?! They better add this to their dictionary.
Google, if you need any references, I’ll be glad to help… For starters, you can check this out: https://www.dictionary.com/browse/kerning …
Ari Singer
MemberThis time I made it easier. It’s just a regular script that you have to execute, it doesn’t require the FindChangebyList script.
Read here on how to save the script.
I’m not sure if it works as expected, so please let me know.
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Fix Duplicate TOC Entries"); function main() { var myDoc = app.activeDocument; cleanPrefs(); app.findGrepPreferences.findWhat = "(?s)(bw+?b)(s+?)(d{1,3})(s+?)(1(.+?)(d{1,3})(.+?))+"; var foundText = myDoc.findGrep(); for (var i = foundText.length - 1; i >= 0; i--) { var curEntry = foundText[i]; app.findGrepPreferences.findWhat = "r(?=.)"; app.changeGrepPreferences.changeTo = ",s"; curEntry.changeGrep(); app.findGrepPreferences.findWhat = "(?<=,s)(w+?).+?(?=d)"; app.changeGrepPreferences.changeTo = ""; curEntry.changeGrep(); } cleanPrefs(); } function cleanPrefs() { app.findGrepPreferences = app.changeGrepPreferences = null; }Ari Singer
MemberI can only alter the script if I have an idea of what you’re looking for. Give me a couple of examples (or a screenshot) so I can figure it out.
Ari Singer
MemberYou have to convert the text to outlines, and then use pathfinder operations to achieve the result you want.
Ari Singer
MemberTry trashing the preferences the manual way: https://creativepro.com/rebuilding-indesign-preferences.php
Ari Singer
MemberTry omitting the version name entirely, as such:
tell application "Adobe InDesign".Ari Singer
MemberI’m not familiar with AppleScript, but how did you adapt to your version? Did you write:
tell application "Adobe InDesign CC 2014"?Ari Singer
MemberAn EPUB might be the best solution. As with an EPUB you will probably get the most unified functionality (more than a PDF, for sure).
Ari Singer
Member>>”Ari, but when you do that, page 8 will still come out as the first page of a PDF. You’d have to move it to the last page there.”
Would you care to elaborate? I’m not sure I understood what you meant.
-
AuthorPosts
