P. 1
Photoshop CS5 Apple Script Ref

Photoshop CS5 Apple Script Ref

|Views: 1,878|Likes:
Published by Julio Cesar Garcia

More info:

Published by: Julio Cesar Garcia on Apr 30, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/26/2012

pdf

text

original

The active containment object for layers and all other objects in the script; the basic canvas for the file.

Note:In Adobe Photoshop CS5, a document can also be referred to as an image or a canvas.

Elements

Properties

Element

Refer to by

art layer

name, numeric index, as a range of elements, before/after

another element, satisfying a test

channel

name, numeric index, as a range of elements, before/after

another element, satisfying a test

color sampler

name, numeric index, as a range of elements, before/after

another element, satisfying a test

count item

name, numeric index, as a range of elements, before/after

another element, satisfying a test

history state

name, numeric index, as a range of elements, before/after

another element, satisfying a test

layer comp

name, numeric index, as a range of elements, before/after

another element, satisfying a test

layer

name, numeric index, as a range of elements, before/after

another element, satisfying a test

layer set

name, numeric index, as a range of elements, before/after

another element, satisfying a test

path item

name, numeric index, as a range of elements, before/after

another element, satisfying a test

Property

Value Type

What it is

best type

type class

Read-only. The best type for the object's value.

class

type class

Read-only. The object's class.

default type

type class

Read-only. The default type for the object's value.

index

integer

Read-only. The index of this instance of the
object.

properties

record

The object's properties returned in a single
record.

Adobe Photoshop CS5

AppleScript Scripting Reference

AppleScript Objects 52

background layer

art layer

Read-only. The background layer for the
document.

Note:Valid only for documents that have a
background layer.

bits per channel

Valid values:

eight
one
sixteen
thirty two

The number of bits per channel.

color profile kind

Valid values:

none
working

The type of color profile management for the
document.

Note:If you want to set a custom color profile, do
not set a value for color profile kind,
but set the appropriate color profile
name.

Caution:Assigning color profile kind to
working when the color profile

kind is already set to working results in
a Photoshop error.

color profile name

Unicode text

The name of color profile for the document.

Note:Valid no value is specified for color
profile kind (to indicate a custom color
profile).

component channels

list of channels

Read-only. A list of the component color channels.

current channels

list of channel

The selected channels.

current history
brush source

history state

The current history state to use with the history
brush.

current history
state

history state

The selected history state.

current layer

layer

The selected layer.

file path

alias

Read-only. The full path name of the document.

height

real

Read-only. The document height (unit value).

Note:This property can be set when using the
make command for document.

histogram

list of 256 integers

Read-only. A histogram of values for the
composite document.

Note:Valid only when mode: RGB;
mode: CMYK; or mode: indexed color.
See mode.

Property

Value Type

What it is (Continued)

Adobe Photoshop CS5

AppleScript Scripting Reference

AppleScript Objects 53

info

info-object

Read-only. The document metadata.

initial fill

Valid values:

transparent
use background color
white

Read-only. The initial fill.

Note:Valid only when used as an option with the
'make new document' command. See
make.

managed

boolean

Read-only. Indicates whether the document is a
workgroup document.

measurement scale

measurement scale

Read-only. The measurement scale for the
document.

mode

Valid values:

bitmap
CMYK
duotone
grayscale
indexed color
Lab
multichannel
RGB

Read-only. The color profile for the document.

Note:This property can be set when using the
make command for document.

modified

boolean

Read-only. Indicates whether the document has
been modified since the last save.

name

Unicode text

Read-only. The document’s name.

Note:This property can be set when using the
make command for document.

pixel aspect ratio

real

The (custom) pixel aspect ratio to use (0.100 -
10.000).

quick mask mode

boolean

Indicates whether the document is in the quick
mask mode.

resolution

real

Read-only. The document’s resolution (in pixels
per inch).

Note:This property can be set when using the
make command for document.

selection

selection-object

Read-only. The selected area of the document.

width

real

Read-only. The document width (unit value).

Note:This property can be set when using the
make command for document.

XMP metadata

XMP metadata

Read-only. Camera raw settings for the image.

Note:Valid only for documents opened in
Camera Raw format.

Property

Value Type

What it is (Continued)

Adobe Photoshop CS5

AppleScript Scripting Reference

AppleScript Objects 54

Valid Commands

auto count
change mode
close
convert
count
crop
deselect
doc duplicate
duplicate
exists
export
flatten
flip canvas
import annotations
index
load
make
merge visible layers
paste
print
resize canvas
resize image
reveal all
rotate canvas
save
select
select all
split channels
trap
trim

Adobe Photoshop CS5

AppleScript Scripting Reference

AppleScript Objects 55

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->