FutureBasic Logo

<<    Index    >> FutureBasic 5

run( partially deprecated - see syntax )   statement


    run path     - where path is a CFStringRef
    run URL     - where URL is a CFURLRef
    run path$ [,refNum% [,dirID&]]    This format is obsolete, unsupported and should not be used

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 the Util_Workspace.incl via functions fn WS_LaunchApplication and fn WS_OpenURL.

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