Adobe 26001360 - Illustrator CS - PC Manual page 97

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
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
97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents