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

Applescript: Check Effective ppi of document

New Here ,
Sep 07, 2012 Sep 07, 2012

Hi

I'm creating a script to check if I have any lo-res images in my document, using effective ppi (Yes I know about preflight) and just pop up a message. However I'm stuck on checking the results the following is returning…

[applescript]

tell application "Adobe InDesign CS6"

          activate

          tell document 1

                    set minimumRes to 100

                    set theEffectiveRes to {}

                    set theLink to every link

                    repeat with x from 1 to count of theLink

                              set the end of theEffectiveRes to effective ppi of parent of link x

                    end repeat

 

                    -- Here I need to check theEffectiveRes for any entires below minimumRes and display a message

 

          end tell

end tell

log theEffectiveRes

[/applescript]

many thanks

Shane

TOPICS
Scripting
944
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
Engaged ,
Sep 07, 2012 Sep 07, 2012
LATEST

Here's how I do it in JavaScript/ExtendScript:

.

.

.

effectivePpi = image.effectivePpi[0];     // grab the horizontal effective resolution

.

.

.

Regards,

Stephen

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