open browser in OS X?

Leston Drake lestond at lpsoftware.com
Tue Nov 30 12:50:25 EST 2004


Hello,

I have a handler that opens a browser. On MacOS platform, the code goes 
like this:

on launchBrowser withFile
   # withFile: URL
   switch the platform
   case "Win32"
     ...
   case "MacOS"
     send withFile to program "Finder" with "GURLGURL"
     break
   end switch
end launchBrowser

Works fine on my old Mac (System 8.something).

I'm trying to create an OS X version of the app, and this handler doesn't work.

Does someone have a script to open a URL in a browser on OS X?

TIA.




More information about the use-livecode mailing list