7. Locating applications
The FindApp
module
The FindApp
module is used to obtain the full path to an application given its file name, bundle ID, or creator code. It exports the following methods:
by_name(name) -- Find the application with the given name.
name : string -- application's name, e.g. 'Finder.app'. The '.app' suffix
is optional. Absolute paths are also accepted.
Result : string -- full path to application
by_id(id) -- Find the application with the given bundle id.
id : string -- bundle id, e.g. 'com.apple.textedit'
Result : string -- full path to application
by_creator(creator) -- Find the application with the given creator type.
creator : string -- four-char code, e.g. 'ttxt'
Result : string -- full path to application