
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 181
BridgeTalk class functions
The BridgeTalk class provides these static methods, which are available in the global namespace:
bringToFront()
BridgeTalk.bringToFront (app)
app
A specifier for the target application; see “Application specifiers” on page 191.
Brings all windows of the specified application to the front of the screen.
In Mac OS, an application can be running but have no windows open. In this case, calling this
function might or might not open a new window, depending on the application. For Adobe Bridge,
it opens a new browser window.
getAppPath()
BridgeTalk.getAppPath (app)
app
A specifier for the target application; see “Application specifiers” on page 191.
Retrieves the full path of the executable file for a specified application.
Returns a string.
getDisplayName()
BridgeTalk.getSpecifier (app)
app
A specifier for the target application; see “Application specifiers” on page 191.
Returns a localized display name for an application, or
NULL if the application is not installed. For
example:
BridgeTalk.getDisplayName("photoshop-10.0");
=> Adobe Photoshop CS4
Komentarze do niniejszej Instrukcji