Adobe 26001360 Scripting Guide - Page 156
paper properties, Example 34.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 156 highlights
156 AppleScript Reference paper properties Information about the paper. Table 4.53 paper properties - Properties Property R/O Value Type custom paper height imageable area width boolean real list real What it is If true, it is a custom paper The paper's height (in points) The imageable area The paper's width (in points) Example 34.1 -- Paper Sizes --- Make a new documet -- Get the name of printer 1 -- Get the paper sizes of printer 1 -- For each paper size, get the name and height/width -- Display the printer info -- tell application "Illustrator CS" activate make new document set printerName to (name of item 1 of printers) as string set printerProperties to properties of (get properties of item 1 of printers) set paperSizes to paper sizes of printerProperties set textContents to printerName & return & "Paper Sizes:" & return repeat with paperSize in paperSizes set paperName to name of paperSize set paperHeight to height of properties of paperSize set paperWidth to width of properties of paperSize set textContents to textContents & tab & paperName & " - (" & paperHeight & " x " & paperWidth & ")" & return as string end repeat make new text frame in document 1 with properties {contents:textContents, position:{20, 600}} end tell 12 Aug 03