FutureBasic Logo

<<    Index    >> FutureBasic

run   statement



Syntax
run path     - where path is a CFStringRef
run url       - where url is a CFURLRef

Description
This statement launches the application specified by path or URL and puts it into the foreground, making it the active process. The program that launched the application does not quit, but is no longer in the foreground.

Examples:
run @"/Applications/Calculator.app" // CFStringRef literal
run path // CFStringRef variable
run url // CFURLRef variable

Note
The same functionality is available in Workspace.incl via functions fn WorkspaceLaunchApplication and fn WorkspaceOpenURL.


See Appendix A - File Object Specifiers for more information on a CFURLRef.