Adobe 26001360 - Illustrator CS - PC Manual page 101

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 4.17 EPS save options — Properties (Continued)
Property
preview
Notes
This class is used to define a record containing properties that specify options when saving a
document as an EPS file. EPS save options can only be used in conjunction with the save
command. It is not possible to get or create an EPS save options object.
It is not necessary to specify values for all properties. Default values will be provided for any
properties not specified.
Example 10.1
This handler processes a folder of Illustrator files, saving each as an EPS file with level 2
PostScript and Illustrator CS compatibility. The files are save to the folder specified in the
destinationFolder parameter. Note that the class property is specified in the record to
ensure that Illustrator can determine the save option class.
-- fileList is a list of aliases to Illustrator files
-- destinationFolder is an alias to a folder where the EPS files are to be saved
set sourceFolder to choose folder with prompt "Source folder?"
tell application "Finder" to ¬
set fileList to every file of folder sourceFolder as alias list
set destinationFolder to choose folder with prompt "Destination folder?"
set destinationPath to destinationFolder as string
repeat with aFile in fileList
tell application "Finder" to set fileName to name of aFile
set newFilePath to destinationPath & fileName & ".EPS"
tell application "Illustrator CS"
open aFile
R/O
Value type
Valid values:
• none
• BW Macintosh
• color Macintosh
• BW TIFF
• color TIFF
• transparent color
TIFF
12 Aug 03
What it is
Specifies the format for the EPS
preview image;
default: color Macintosh
101

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents