Scripting Guide
Page 6
vi Illustrator save options 125 ink 128 ink properties 128 insertion point 129 job options 132 JPEG export options 134 layer, layers 136 line 140 matrix 146 ..., paragraph styles 166 path item, path items 173 path point, path points 176 path point info 178 pattern, patterns 179 pattern color info 180 PDF options 181 PDF save options 183 Photoshop options 188 Photoshop export options 190 placed item, placed items 192 plugin item, plugin items 194 PNG24 export options 194...
vi Illustrator save options 125 ink 128 ink properties 128 insertion point 129 job options 132 JPEG export options 134 layer, layers 136 line 140 matrix 146 ..., paragraph styles 166 path item, path items 173 path point, path points 176 path point info 178 pattern, patterns 179 pattern color info 180 PDF options 181 PDF save options 183 Photoshop options 188 Photoshop export options 190 placed item, placed items 192 plugin item, plugin items 194 PNG24 export options 194...
Scripting Guide
Page 8
... get identity matrix 263 get rotation matrix 264 get scale matrix 264 get translation matrix 265 import character styles 265 import paragraph styles 266 import PDF preset 267 import print preset 267 import variables 268 invert matrix 268 make 269 move 270 open 271 paste 272 print 273 quit 273 redraw...
... get identity matrix 263 get rotation matrix 264 get scale matrix 264 get translation matrix 265 import character styles 265 import paragraph styles 266 import PDF preset 267 import print preset 267 import variables 268 invert matrix 268 make 269 move 270 open 271 paste 272 print 273 quit 273 redraw...
Scripting Guide
Page 64
...memory frontmost name R/O list of Unicode text R/O integer R/O boolean R/O Unicode text PDF presets PPDs R/O list of Unicode text R/O list of PPD files print presets R/O list of unused memory (in Illustrator The default type for the application object's value; always returns reference The list ... to by: name, index, before/after, range, test name, index, before/after, range, test Table 4.2 application - always returns "Adobe Illustrator CS" The list of print preset names currently available for use The list of PPD files currently available for use (a document must be open or...
...memory frontmost name R/O list of Unicode text R/O integer R/O boolean R/O Unicode text PDF presets PPDs R/O list of Unicode text R/O list of PPD files print presets R/O list of unused memory (in Illustrator The default type for the application object's value; always returns reference The list ... to by: name, index, before/after, range, test name, index, before/after, range, test Table 4.2 application - always returns "Adobe Illustrator CS" The list of print preset names currently available for use The list of PPD files currently available for use (a document must be open or...
Scripting Guide
Page 121
..., before/after, range, test name, index, before/after, range, test Table 4.32 group item, group items - Adobe Illustrator CS Scripting Guide 121 Table 4.31 group item, group items - Elements (Continued) Element: Refer to the vector file (EPS or PDF) in this record) Valid Commands • count • delete • duplicate • exists • move...
..., before/after, range, test name, index, before/after, range, test Table 4.32 group item, group items - Adobe Illustrator CS Scripting Guide 121 Table 4.31 group item, group items - Elements (Continued) Element: Refer to the vector file (EPS or PDF) in this record) Valid Commands • count • delete • duplicate • exists • move...
Scripting Guide
Page 122
...command with properties {position:{0, 600}} end tell return groupRef end EmbedVectorFile -- the available placement options tell application "Illustrator CS" set groupRef to make new group item in document 1 set rectRef to make new rectangle after rectRef with ...art file -- Create a new group whose contents will be placed on EmbedVectorFile(fileRef) tell application "Illustrator CS" set groupRef to make new rectangle before rectRef with objects. This example demonstrates how path items can... end of a vector art file, either EPS or PDF. -- 122 AppleScript Reference command.
...command with properties {position:{0, 600}} end tell return groupRef end EmbedVectorFile -- the available placement options tell application "Illustrator CS" set groupRef to make new group item in document 1 set rectRef to make new rectangle after rectRef with ...art file -- Create a new group whose contents will be placed on EmbedVectorFile(fileRef) tell application "Illustrator CS" set groupRef to make new rectangle before rectRef with objects. This example demonstrates how path items can... end of a vector art file, either EPS or PDF. -- 122 AppleScript Reference command.
Scripting Guide
Page 125
... class R/O type class record PDF file options R/O PDF options Photoshop file options R/O Photoshop options What it is The best type for the object's value The object's class The default type for additional details. default: Illustrator CS boolean If true, the saved file should be compressed; Only for Illustrator. Adobe Illustrator CS Scripting Guide 125 Illustrator preferences Specifies preferences for...
... class R/O type class record PDF file options R/O PDF options Photoshop file options R/O Photoshop options What it is The best type for the object's value The object's class The default type for additional details. default: Illustrator CS boolean If true, the saved file should be compressed; Only for Illustrator. Adobe Illustrator CS Scripting Guide 125 Illustrator preferences Specifies preferences for...
Scripting Guide
Page 126
...appearance Include a subset of fonts when less than this percentage of characters are to be flattened for all properties. Only for Illustrator 9 or greater documents. Default values will be supplied in conjunction with the save Notes This class is not necessary to ... true, the linked image files are used to specify values for file formats before Illustrator 9 or greater? It is embed ICC profile flatten output font subset threshold embed linked files overprint PDF compatible boolean Valid values: • preserve paths • preserve appearance real boolean Valid...
...appearance Include a subset of fonts when less than this percentage of characters are to be flattened for all properties. Only for Illustrator 9 or greater documents. Default values will be supplied in conjunction with the save Notes This class is not necessary to ... true, the linked image files are used to specify values for file formats before Illustrator 9 or greater? It is embed ICC profile flatten output font subset threshold embed linked files overprint PDF compatible boolean Valid values: • preserve paths • preserve appearance real boolean Valid...
Scripting Guide
Page 181
...script sets the default fill of the document to the first pattern tell application "Illustrator CS" set default fill color of document 1 to {pattern:pattern 1 of document 1} end tell PDF options Options which may be specified to further transform the pattern color. Properties (... What page should be supplied when opening a multipage document; Table 4.63 PDF options - default: 0.0 Notes Pattern colors are created using a reference to translate the unscaled prototype pattern before filling; Adobe Illustrator CS Scripting Guide 181 Table 4.62 pattern color info - default: 1 12 ...
...script sets the default fill of the document to the first pattern tell application "Illustrator CS" set default fill color of document 1 to {pattern:pattern 1 of document 1} end tell PDF options Options which may be specified to further transform the pattern color. Properties (... What page should be supplied when opening a multipage document; Table 4.63 PDF options - default: 0.0 Notes Pattern colors are created using a reference to translate the unscaled prototype pattern before filling; Adobe Illustrator CS Scripting Guide 181 Table 4.62 pattern color info - default: 1 12 ...
Scripting Guide
Page 182
... theFile to open:" end tell tell application "Illustrator CS" activate 12 Aug 03 Open the file -- Properties (Continued) Property R/O Value Type What it is PDF crop bounds properties Valid values: • PDF art box • PDF bleed box • PDF bounding box • PDF crop box • PDF media box • PDF trim box record What box should be...
... theFile to open:" end tell tell application "Illustrator CS" activate 12 Aug 03 Open the file -- Properties (Continued) Property R/O Value Type What it is PDF crop bounds properties Valid values: • PDF art box • PDF bleed box • PDF bounding box • PDF crop box • PDF media box • PDF trim box record What box should be...
Scripting Guide
Page 183
... 03 Properties Property R/O Value Type What it is acrobat layers allow printing bleed link bleed offset changes allowed boolean Create acrobat layers from toplevel layers; Adobe Illustrator CS Scripting Guide 183 set user interaction level to never interact set page of PDF file options of settings to 2 open file (theFile as an Acrobat...
... 03 Properties Property R/O Value Type What it is acrobat layers allow printing bleed link bleed offset changes allowed boolean Create acrobat layers from toplevel layers; Adobe Illustrator CS Scripting Guide 183 set user interaction level to never interact set page of PDF file options of settings to 2 open file (theFile as an Acrobat...
Scripting Guide
Page 184
... boolean Draw color bars; default: 256 The version of the Acrobat file format to open the document 12 Aug 03 184 AppleScript Reference Table 4.64 PDF save options - Properties (Continued) Property R/O Value Type What it is above this value; default: Acrobat 6 If true, the line art and text should be resampled...
... boolean Draw color bars; default: 256 The version of the Acrobat file format to open the document 12 Aug 03 184 AppleScript Reference Table 4.64 PDF save options - Properties (Continued) Property R/O Value Type What it is above this value; default: Acrobat 6 If true, the line art and text should be resampled...
Scripting Guide
Page 185
...'s ICC profile in the saved file; default: false real Include a subset of fonts when less than this percentage of text 128-bit; Adobe Illustrator CS Scripting Guide 185 Table 4.64 PDF save options - default: 100.0) Unicode text The transparency flattener preset name flattening options The printing flattener options boolean If true, generate thumbnails for...
...'s ICC profile in the saved file; default: false real Include a subset of fonts when less than this percentage of text 128-bit; Adobe Illustrator CS Scripting Guide 185 Table 4.64 PDF save options - default: 100.0) Unicode text The transparency flattener preset name flattening options The printing flattener options boolean If true, generate thumbnails for...
Scripting Guide
Page 186
... If zero: no downsampling; default: nodownsample Custom offset (in points) for fast web view; default: 0.0 If true, the PDF file should be saved for using the custom paper; 186 AppleScript Reference Table 4.64 PDF save options - default: 256 Specifies how monochrome bitmap images should be compressed; default: 225.0 Specifies how the grayscale...
... If zero: no downsampling; default: nodownsample Custom offset (in points) for fast web view; default: 0.0 If true, the PDF file should be saved for using the custom paper; 186 AppleScript Reference Table 4.64 PDF save options - default: 256 Specifies how monochrome bitmap images should be compressed; default: 225.0 Specifies how the grayscale...
Scripting Guide
Page 187
Adobe Illustrator CS Scripting Guide Table 4.64 PDF save options - default: false If true, view PDF after saving; default: no string If true, preserve Illustrator editing capabilities when saving the document; default: false Weight of PDF preset to use PDF style name A password string to restrict editing...password is a list of aliases to edit security settings; default: false Example 43.1 -- fileList is required to Illustrator files -- default: trimmarkweight0125 If true, draw trim marks; destinationFolder is The page marks style; Properties (Continued) Property R/O Value ...
Adobe Illustrator CS Scripting Guide Table 4.64 PDF save options - default: false If true, view PDF after saving; default: no string If true, preserve Illustrator editing capabilities when saving the document; default: false Weight of PDF preset to use PDF style name A password string to restrict editing...password is a list of aliases to edit security settings; default: false Example 43.1 -- fileList is required to Illustrator files -- default: trimmarkweight0125 If true, draw trim marks; destinationFolder is The page marks style; Properties (Continued) Property R/O Value ...
Scripting Guide
Page 188
...Aug 03 188 AppleScript Reference repeat with aFile in fileList tell application "Finder" to set fileName to name of folder sourceFolder as pdf ¬ with prompt "Destination folder?" SaveFilesAsPDF(fileList, destinationFolder) Photoshop options You can supply options when opening a Photoshop file. ...Photoshop options - Call handler set fileList to every file of aFile set newFilePath to destinationPath & fileName & ".pdf" tell application "Illustrator CS" open command in file newFilePath as alias list set destinationFolder to choose folder with prompt "Source folder?"
...Aug 03 188 AppleScript Reference repeat with aFile in fileList tell application "Finder" to set fileName to name of folder sourceFolder as pdf ¬ with prompt "Destination folder?" SaveFilesAsPDF(fileList, destinationFolder) Photoshop options You can supply options when opening a Photoshop file. ...Photoshop options - Call handler set fileList to every file of aFile set newFilePath to destinationPath & fileName & ".pdf" tell application "Illustrator CS" open command in file newFilePath as alias list set destinationFolder to choose folder with prompt "Source folder?"
Scripting Guide
Page 192
... to a file containing vector-graphic data, such as alias list set sourceFolder to the placed item record All of folder sourceFolder as a PICT, EPS or PDF file Note: This object class inherits all valid properties from the page item class. .
... to a file containing vector-graphic data, such as alias list set sourceFolder to the placed item record All of folder sourceFolder as a PICT, EPS or PDF file Note: This object class inherits all valid properties from the page item class. .
Scripting Guide
Page 193
... and PDF files, with properties ¬ {file path:fileRef, position:itemPosition} end tell 12 Aug 03 It is a fixed point at which to position the placed item property itemPosition: {100.0, 200.0} set fileRef to image. fileRef is displayed. Adobe Illustrator CS Scripting ...Guide 193 Valid Commands • count • delete • duplicate • exists • move • rotate • scale • transform • translate Notes When you create a placed item, Illustrator may display a dialog.
... and PDF files, with properties ¬ {file path:fileRef, position:itemPosition} end tell 12 Aug 03 It is a fixed point at which to position the placed item property itemPosition: {100.0, 200.0} set fileRef to image. fileRef is displayed. Adobe Illustrator CS Scripting ...Guide 193 Valid Commands • count • delete • duplicate • exists • move • rotate • scale • transform • translate Notes When you create a placed item, Illustrator may display a dialog.
Scripting Guide
Page 261
Parameters Parameters What it is to file specification Specifies the file to export to Returns export print presets Table 4.126 export print styles - Table 4.125 export PDF preset - Parameters Parameters What it is Objects supported document to file specification The document object or objects to be operated upon The file to export to Objects supported Returns 12 Aug 03 Adobe Illustrator CS Scripting Guide 261 export PDF preset This command exports PDF presets and saves all PDF presets to a file.
Parameters Parameters What it is to file specification Specifies the file to export to Returns export print presets Table 4.126 export print styles - Table 4.125 export PDF preset - Parameters Parameters What it is Objects supported document to file specification The document object or objects to be operated upon The file to export to Objects supported Returns 12 Aug 03 Adobe Illustrator CS Scripting Guide 261 export PDF preset This command exports PDF presets and saves all PDF presets to a file.
Scripting Guide
Page 267
default: false Returns import print preset Loads the named printf preset from a file. Table 4.133 import PDF preset - Table 4.134 import print preset - Adobe Illustrator CS Scripting Guide 267 import PDF preset Loads all PDF presets from the file. Parameters Parameters What it is import print preset document print preset Unicode text from file specification The document...
default: false Returns import print preset Loads the named printf preset from a file. Table 4.133 import PDF preset - Table 4.134 import print preset - Adobe Illustrator CS Scripting Guide 267 import PDF preset Loads all PDF presets from the file. Parameters Parameters What it is import print preset document print preset Unicode text from file specification The document...
Scripting Guide
Page 271
Adobe Illustrator CS Scripting Guide 271 open - any file Illustrator can open fileToOpen forcing RGB end tell 12 Aug 03 Example 99.1 -- Parameters Parameters What it is Objects supported anything The file to the user. Does not work on Illustrator CS files, only preIllustrator 9. This script opens a PDF document -- selected by the user and forcing the use of...
Adobe Illustrator CS Scripting Guide 271 open - any file Illustrator can open fileToOpen forcing RGB end tell 12 Aug 03 Example 99.1 -- Parameters Parameters What it is Objects supported anything The file to the user. Does not work on Illustrator CS files, only preIllustrator 9. This script opens a PDF document -- selected by the user and forcing the use of...