
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 49
open
(document
[, as]
[, asSmartObject]
)
File
object (open options)
boolean
Note:
See individual file
type open options,
such as
CameraRAWOpenO
ptions
or
EPSOpenOptions
,
etc.
Document
Opens the specified
document as the optionally
specified file type. Optional
paramater
asSmartObject
(default:
false
) indicates
whether to create a smart
object around the opened
document.
Note:
For information about
the File object, see the
JavaScript Tools Guide
.
See the Application
sample script for an
example of using the
File
object in the
open
method.
openDialog
()
array of File
Uses the Photoshop open
dialog box to select files.
Returns an array of
File
representing the files
selected.
Note:
For information about
the
File
object, see
the
JavaScript Tools
Guide
purge
(target)
PurgeTarget
Purges one or more caches.
putCustomOptions
(key,
customObject
[, persistent]
)
string
ActionDescriptor
boolean
Saves user objects in the
Photoshop registry.
key
provides the unique ID for
your user object.
customObject
provides the
object to save in the registry.
persistent
indicates
whether the object should
persist once the script has
finished.
refresh
()
Pauses the script while the
application refreshes.
stringIDToTypeID
(stringID)
string
number (long)
Converts from a string ID to a
runtime ID.
Method
Parameter Type
Returns
What it does (Continued)