Adobe 65010248 Scripting Guide - Page 27

Collection objects, AppleScript, JavaScript - photoshop

Page 27 highlights

CHAPTER 3: Scripting Illustrator Working with objects 27 The following objects must be created explicitly: CMYK color document preset EPS save options export options AutoCAD export options Flash export options GIF export options JPEG export options Photoshop export options PNG8 export options PNG24 export options SVG file folder gradient color gray color Illustrator save options ink ink info lab color matrix MXG save options no color open options open options AutoCAD open options FreeHand open options PDF open options Photoshop paper info Pattern color PDF save options PPD file PPD file info print color management options print color separation options print coordinate options printer printer info print flattener options print font options print job options print options print page marks options print paper options print postscript options raster effect options rasterize options screen screen spot function RGB color spot color tracing options The file and folder objects are Adobe ExtendScript devices designed to provide platform-independent access to the underlying file system. For information on using these objects, see JavaScript Tools Guide. For information on creating an object explicitly, see the chapter for your scripting language. Collection objects Most collection objects must be obtained from a container. For example, a path items collection object can be contained by a document object or a layer object; to obtain an object in a path items collection, refer to either containing of these objects. For example, see the language-specific sections below. AppleScript To refer to a path items object in a document: path item 1 in document 1 To refer to a path items object in a layer: path item 1 in layer 1 in document 1 JavaScript To refer to a path items object in a document: documents[0].pathItems[1] To refer to a path items object in a layer: documents[0].layers[0].pathItems[0]

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

C
HAPTER
3: Scripting Illustrator
Working with objects
27
The following objects must be created explicitly:
The
file
and
folder
objects are Adobe ExtendScript devices designed to provide platform-independent
access to the underlying file system. For information on using these objects, see
JavaScript Tools Guide
.
For information on creating an object explicitly, see the chapter for your scripting language.
Collection objects
Most collection objects must be obtained from a container. For example, a
path
items
collection object
can be contained by a
document
object or a
layer
object; to obtain an object in a
path
items
collection,
refer to either containing of these objects. For example, see the language-specific sections below.
AppleScript
To refer to a
path
items
object in a document:
path item 1 in document 1
To refer to a
path
items
object in a layer:
path item 1 in layer 1 in document 1
JavaScript
To refer to a
path
items
object in a document:
documents[0].pathItems[1]
To refer to a
path
items
object in a layer:
documents[0].layers[0].pathItems[0]
CMYK color
document preset
EPS save options
export options AutoCAD
export options Flash
export options GIF
export options JPEG
export options Photoshop
export options PNG8
export options PNG24
export options SVG
file
folder
gradient color
gray color
Illustrator save options
ink
ink info
lab color
matrix
MXG save options
no color
open options
open options AutoCAD
open options FreeHand
open options PDF
open options Photoshop
paper info
Pattern color
PDF save options
PPD file
PPD file info
print color management options
print color separation options
print coordinate options
printer
printer info
print flattener options
print font options
print job options
print options
print page marks options
print paper options
print postscript options
raster effect options
rasterize options
screen
screen spot function
RGB color
spot color
tracing options