Skip to main content
Participant
September 7, 2012
Question

Applescript: Check Effective ppi of document

  • September 7, 2012
  • 1 reply
  • 963 views

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

This topic has been closed for replies.

1 reply

MrTIFF
Participating Frequently
September 8, 2012

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

.

.

.

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

.

.

.

Regards,

Stephen