Adobe 26001360 - Illustrator CS - PC Manual page 222

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

Advertisement

222
Table 4.89 SVG export options — Properties (Continued)
Property
include variables and
datasets
optimize for SVG Viewer
preserve editability
slices
Notes
This class is used to define a record containing properties that specify options when exporting
a document as a SVG file. SVG export options can only be supplied in conjunction with
the export command. It is not possible to get or create an SVG export options object.
It is not necessary to specify values for all properties. Default values will be provided for any
properties not specified.
Example 64.1
This handler saves all files in a folder as SVG files with linked raster imaged embedded in the
exported 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 PNG files are to be saved
on SaveFilesAsSVG(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 & ".svg"
tell application "Illustrator CS"
open aFile
export current document to file newFilePath as SVG ¬
with options {class:SVG export options ¬
R/O
Value type
boolean
boolean
boolean
boolean
12 Aug 03
AppleScript Reference
What it is
If true, variables and datasets should be
included; default: false
If true, the Adobe namespace should be
included; default: false
If true, Illustrator editing capabilities
should be preserved when exporting the
document; default: false
If true, slice data should be preserved in
exported document; default: false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents