FutureBasic Logo

<<    Index    >> FutureBasic

run   statement

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

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.

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

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.