[futurebasic] Re: [FB] Open System Preferences

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2007 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Thu, 22 Feb 2007 03:11:17 -0500
Max asked:

>Would we be right in assuming that this same code will launch any 
>Application who's path is given?

Yep. Of course you could also take the folllowing shortcut-- but 
Brian may object since it bypasses several layers of OS X opaque 
abstraction.

;-)

Ken

local fn LaunchApp( app as str255 )
open "Unix", 1, "open " + app : close 1
end fn

fn LaunchApp( "/Applications/Safari.app" )
fn LaunchApp( "/Applications/TextEdit.app" )
fn LaunchApp( "/Applications/Utilities/Terminal.app" )
end

do
handleevents
until gFBQuit