Adobe 26001360 Scripting Guide - Page 106
set posY to startY - x * 15, set posX to startX
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 106 highlights
106 AppleScript Reference -- For each font, make a new text frame with the name of the font and the font applied to it -- Position the text frames into three columns -- tell application "Illustrator CS" activate make new document set fontCount to count fonts set x to 1 set startX to 10 set startY to (height of document 1) - 10 repeat with i from 1 to fontCount make new text frame in document 1 set fontName to name of font i try if fontName is not name of font (i + 1) then set posX to startX set posY to startY - (x * 15) make new text frame in document 1 with properties {contents:fontName, position:{posX, posY}} set the font of text of the result to font i set x to x + 1 if x ≥ 50 then set startX to startX + 220 set startY to (height of document 1) - 10 set x to 1 end if end if end try end repeat end tell 12 Aug 03