Adobe 26001360 Scripting Guide - Page 97
Example 8.3, the script uses
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 97 highlights
Adobe Illustrator CS Scripting Guide 97 set strokeDashes to {2.5, 1, 2.5, 1, 2.5, 1} else set strokeDashes to {} end if tell application "Illustrator CS" -- Create a document with the requested color space if documentType starts with "CMYK" then set docRef to make new document with properties {color space:CMYK} else set docRef to make new document with properties {color space:RGB} end if -- Set the document's properties with one command set properties of docRef to ¬ {default filled:fillPaths ¬ , default stroked:strokePaths ¬ , default stroke width:strokeWidth ¬ , default stroke dashes:strokeDashes} end tell end if Example 8.3 This example demonstrates how to use document properties in other applications. In this case, the script uses the file path property of the active document to open the folder containing the Illustrator document in the Finder. -- Reveal and select a document's file icon in the Finder tell application "Illustrator CS" set filePath to file path of current document end tell tell application "Finder" activate reveal filePath end tell 12 Aug 03