
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 184
X
If neither version nor locale is supplied, returns base specifiers with neither version nor locale
information, but tries to find the most appropriate version and locale; see “
Application
specifiers” on page 191.
For example, assuming installed applications include Photoshop CS3 10.0
en_US, Photoshop CS4
11.0
en_us, and Illustrator CS4 14.0 de_de:
BridgeTalk.getTargets();
=> [photoshop,illustrator]
BridgeTalk.getTargets( "10.0" );
=> [photoshop-10.0]
BridgeTalk.getTargets( null );
=> [photoshop-11.0, illustrator-14.0]
BridgeTalk.getTargets( null, "en_US" );
=> [photoshop-10.0-en_US, photoshop-11.0-en_US]
BridgeTalk.getTargets( null, null );
=> [photoshop-10.0-en_US, photoshop-11.0-en_us, illustrator-14.0-de_de]
isRunning()
BridgeTalk.isRunning (specifier)
specifier
A specifier for the target application; see “Application specifiers” on page 191.
Returns true if the given application is running and active on the local computer.
launch()
BridgeTalk.launch (specifier [, where])
specifier
A specifier for the target application; see “Application specifiers” on page 191.
where
Optional. If the value "background" is specified, the application’s main window is
not brought to the front of the screen.
Launches the given application on the local computer. It is not necessary to launch an application
explicitly in order to send it a message; sending a message to an application that is not running
automatically launches it.
Returns true if the application has already been launched, false if it was launched by this call.
loadAppScript()
BridgeTalk.loadAppScript (specifier)
specifier
A specifier for the target application; see “Application specifiers” on page 191.
Loads the startup script for an application from the common
StartupScripts folders. Use to
implement late loading of startup scripts.
Returns true if the script was successfully loaded.
Comentarios a estos manuales