This task explains how to use NSWorkspace to manipulate
applications. For information on how to use the .app
extension,
see “Use of .app Extension.”
Manipulating Applications
Locating Applications
Hiding Applications
The NSWorkspace methods launchApplication:
and launchApplication:showIcon:autoLaunch:
launch applications using Launch Services..
The application name can include or omit the .app
extension.
The fullPathForApplication:
method
returns the full path for an application, specified with or without
the .app
extension.
To hide all other applications, you can use the hideOtherApplications
method.
Since the user usually has access to this functionality through
other means, you should rarely have to invoke this method.
© 2002, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-03-06)