Type Method

applicationWithBundleIdentifier:

Returns the shared instance representing the target application specified by its bundle identifier.

Declaration

+ (__kindof SBApplication *)applicationWithBundleIdentifier:(NSString *)ident;

Parameters

ident

A bundle identifier specifying an application that is OSA-compliant.

Return Value

An instance of a SBApplication subclass that represents the target application whose bundle identifier is ident. Returns nil if no such application can be found or if the application does not have a scripting interface.

Discussion

For applications that declare themselves to have a dynamic scripting interface, this method will launch the application if it is not already running.

See Also

Getting a Scriptable Application Instance

+ applicationWithProcessIdentifier:

Returns the shared instance representing a target application specified by its process identifier.

+ applicationWithURL:

Returns the shared instance representing a target application specified by the given URL.