Specifications

Table Of Contents
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 49
open
(document
[, as]
[, asSmartObject])
File
object or OpenDocumentType
boolean
Document
Opens the specified document.
Use the optional
as parameter to
specify the file format using the
constants in
OpenDocumentType; or,
you can specify a file format together
with its open options using these
objects:
CameraRAWOpenOptions
DICOMOpenOptions
EPSOpenOptions
PDFOpenOptions
PhotoCDOpenOptions
RawFormatOpenOptions
Use the optional parameter
asSmartObject (default: false) to
create a smart object around the
opened document.
See the Application sample scripts
for
an example of using the
File object
in the
open method.
openDialog
()
array of File
Invokes the Photoshop Open dialog
box for the user to select files.
Returns an array of
File objects for
the files selected in the dialog.
purge
(target)
PurgeTarget
Purges one or more caches.
putCustomOptions
(key,
customObject
[, persistent])
string
ActionDescriptor
boolean
Saves a customized settings object in
the Photoshop registry.
key is the unique identifier for your
custom settings.
customObject is 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. Use to slow
down execution and show the results
to the user as the script runs. Use
carefully; your script runs much more
slowly when using this method.
refreshFonts
()
Force the font list to get updated.
runMenuItem
(menuID)
number
Run a menu item given the menu ID.
Method Parameter type Returns What it does (Continued)