Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Identify Horizontally Scaled Text script

Community Beginner ,
Jun 13, 2017 Jun 13, 2017

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)

TOPICS
Scripting
997
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 13, 2017 Jun 13, 2017

Yes, there is an option to find "Non-porportional Type Scaling".

Translate
People's Champ ,
Jun 13, 2017 Jun 13, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 13, 2017 Jun 13, 2017

Yes, there is an option to find "Non-porportional Type Scaling".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 13, 2017 Jun 13, 2017
LATEST

Thank you! This is even better than the script option

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 13, 2017 Jun 13, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines