open browser in OS X?

Leston Drake lestond at lpsoftware.com
Tue Nov 30 12:37:38 CST 2004


Sweet. Nice function.

Looks like this is in the regular files (ie, you do not need libURL or any 
other "extra" lib).

Thanks!

At 11:29 AM 11/30/2004, you wrote:
>on mouseUp
>     revGoURL "http://www.apple.com"
>end mouseUp
>
>
>And that should work on all platforms  ;-)
>
>On Nov 30, 2004, at 12:50 PM, Leston Drake wrote:
>
>>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.
>>
>>
>>_______________________________________________
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>-----------------------------------------------------------
>Frank D. Engel, Jr.  <fde101 at fjrhome.net>
>
>$ ln -s /usr/share/kjvbible /usr/manual
>$ true | cat /usr/manual | grep "John 3:16"
>John 3:16 For God so loved the world, that he gave his only begotten Son, 
>that whosoever believeth in him should not perish, but have everlasting life.
>$
>
>
>
>___________________________________________________________
>$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
>10 Personalized POP and Web E-mail Accounts, and much more.
>Signup at www.doteasy.com
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list