
CHAPTER 5: Interapplication Communication with Scripts Application and namespace specifiers 193
Namespace specifiers
When calling cross-DOM and exported functions from other applications, a namespace specifier qualifies
the function call, directing it to the appropriate application.
Namespace specifiers consist of an application name, as used in an application specifier, with an optional
major version number. Use it as a prefix to an exported function name, with the JavaScript dot notation.
appname[majorVersion].functionName(args)
For example:
X To call the cross-DOM function quit in Photoshop, use photoshop.quit(), and to call it in Adobe
Illustrator®, use
illustrator.quit().
X To call the exported function place, defined for Illustrator CS5 version 15 call
illustrator15.place(myFiles).
For information about the cross-DOM and exported functions, see “
Remote function calls” on page 166.
Comentários a estes Manuais