
CHAPTER 5: Interapplication Communication with Scripts Cross-DOM functions 169
openAsNew()
appspec.openAsNew([options])
options
Optional. Application-specific creation options:
Adobe Bridge: none
Photoshop: none
InDesign: creation options are:
(Boolean:showingWindow, ObjectOrString:documentPresets)
See the arguments for documents.add() in the Adobe InDesign CS5 Scripting
Reference.
Illustrator: creation options are:
([DocumentColorSpace:colorspace][, Number:width, Number:height])
See the arguments for documents.add() in the Adobe Illustrator CS5 JavaScript
Reference.
Performs the equivalent of the target application’s File > New command. Returns true on success.
print()
appspec.print(files)
files
A File object or array of File objects. For applications that use compound documents,
this should be a project file.
Performs the equivalent of the target application’s File > Print command on the specified files.
Returns
undefined.
quit()
appspec.quit()
Performs the equivalent of the target application’s File > Exit or File > Close command. Returns
undefined.
N
OTE: This function is available for Adobe Acrobat
®
, but does nothing. Scripts cannot terminate the
application.
reveal()
appspec.reveal(file)
file
A File object or string specifying a file that can be opened in the target application.
Gives the target application the operating-system focus, and, if the specified file is open in that
application, brings it to the foreground. Returns
undefined.
Comentários a estes Manuais