Adobe 26001360 - Illustrator CS - PC Manual page 191

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

Advertisement

Adobe Illustrator CS Scripting Guide
Table 4.66 Photoshop export options — Properties (Continued)
Property
write layers
Notes
This class is used to define a record containing properties that specify options when exporting
a document as a Photoshop file. Photoshop export options can only be supplied in
conjunction with the export command. It is not possible to get or create an Photoshop
export options object.
It is not necessary to specify values for all properties. Default values will be provided for any
properties not specified.
Example 45.1
This handler saves all files in a folder as layered Photoshop files. 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 Photoshop files
-- are to be saved
on SaveFilesAsPhotoshop(fileList, destinationFolder)
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 & ".psd"
tell application "Illustrator CS"
open aFile
export current document to file newFilePath as Photoshop ¬
with options {class:Photoshop export options ¬
, color space:RGB ¬
, embed ICC profile:true ¬
, resolution:150}
close current document saving no
R/O
Value type
boolean
12 Aug 03
What it is
If true, the layers of the Illustrator
document should be preserved in the
exported image; default: true
191

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents