Copy link to clipboard
Copied
Hello, I'm searching for script that could identify (find) horizontally scaled text in an InDesign document. In my mind running the script would search for any fonts scaled over or under 100%. If found the script would jump to that text box. The version of InDesign I'm using is CS5.5 (not sure if that matters)
Yes, there is an option to find "Non-porportional Type Scaling".
Copy link to clipboard
Copied
This can be done with InDesign's built-in preflight feature. Not sure if it's available in CS5.5 though. If it is, do you really need a script? If it isn't, perhaps it's time to upgrade? 😉
Ariel
Copy link to clipboard
Copied
Yes, there is an option to find "Non-porportional Type Scaling".
Copy link to clipboard
Copied
Thank you! This is even better than the script option
Copy link to clipboard
Copied
var words = app.selection[0].parentStory.words;
var faux = [];
for (var i=0; i<words.length; i++) {
if (words.horizontalScale > 100) {
faux.push(words.contents);
words.fillColor = app.activeDocument.colors.itemByName("Yellow");
//~ app.select(words);
}
}
alert("Found words:\r" + faux.join("\r"));
It's a good first step.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now