open url theurl

Klaus Major klaus at major-k.de
Fri Nov 12 06:40:20 EST 2004


Hi Eric,

> In hypercard "open url theurl" will open a webbrowser and go to theurl.
> How can i do this in metacard or revolution without using applescript?
> i don't want to load the url into a field - i want to open a browser 
> and go to
> theurl.

On OS X you can use "shell":

on mouseUp
   put "http://www.major-k.de" into tUrl
   ## does work with other URLs, too, of course :-)
   get shell("open" && tUrl)
end mouseUp

Will do exactly what you want..

On windows there might be a similar approach, but i am not sure...

Hope that helps.

> thanks!

Best

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list