Important: The information in this document is obsolete and should not be used for new development.
Launch Options
When you use theLaunchApplication
function, you specify the launch options in thelaunchControlFlags
field of the launch parameter block. These are the constants you can specify in thelaunchControlFlags
field:
CONST launchContinue = $4000; launchNoFileFlags = $0800; launchUseMinimum = $0400; launchDontSwitch = $0200; launchInhibitDaemon = $0080;Constant descriptions
launchContinue
- Set this flag if you want your application to continue after the specified application is launched. If you do not set this flag,
LaunchApplication
terminates your application after launching the specified application, even if the launch fails.launchNoFileFlags
Set this flag if you want theLaunchApplication
function to ignore any value specified in thelaunchFileFlags
field. If you set thelaunchNoFileFlags
flag, theLaunchApplication
function extracts the Finder flags from the application file for you. If you want to supply the file flags, clear thelaunchNoFileFlags
flag and specify the Finder flags in thelaunchFileFlags
field of the launch parameter block.launchUseMinimum
Clear this flag if you want theLaunchApplication
function to attempt to launch the application in the preferred size (as specified in the application's'SIZE'
resource). If you set thelaunchUseMinimum
flag, theLaunchApplication
function attempts to launch the application using the largest available size greater than or equal to the minimum size but less than the preferred size. If theLaunchApplication
function returns the result codememFullErr
ormemFragErr
, the application cannot be launched under the current memory conditions.launchDontSwitch
Set this flag if you do not want the launched application brought to the front. If you set this flag, the launched application runs in the background until the user brings the application to the front--for example, by clicking in one of the application's windows. Note that most applications expect to be launched in the foreground. If you clear thelaunchDontSwitch
flag, the launched application is brought to the front, and your application is sent to the background.launchInhibitDaemon
Set this flag if you do not wantLaunchApplication
to launch a background-only application. (A background-only application has theonlyBackground
flag set in its'SIZE'
resource.)