Adobe 26001360 Scripting Guide - Page 213
screen properties, Example 58.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 213 highlights
Adobe Illustrator CS Scripting Guide 213 screen properties Screen information Table 4.81 screen properties - Properties Property R/O Value Type angle default screen frequency real boolean real What it is The screen's angle If true, it is the default screen The screen's frequency Example 58.1 -- PPD Screens --- Make a new document -- Get the PPDs -- Get the name, and screens of the first PPD -- For each screen, get the name, angle, and frequency -- Display the results of the PPD info in a text frame -- tell application "Illustrator CS" activate make new document set PPDFiles to PPDs set PPDName to name of item 1 of PPDFiles set PPDProperties to get properties of item 1 of PPDFiles set PPDScreens to screens of PPDProperties set screensText to "Screens" & return repeat with PPDScreen in PPDScreens set PPDScreenName to name of PPDScreen set PPDScreenAngle to angle of properties of PPDScreen set PPFScreenFrequency to frequency of properties of PPDScreen set screensText to screensText & tab & PPDScreenName & " - Angle: " & PPDScreenAngle & ", Frequency: " & PPFScreenFrequency & return as string end repeat set textContents to PPDName & return & screensText make new text frame in document 1 with properties {contents:textContents, position:{20, 600}} end tell 12 Aug 03