Recently, Leston Drake wrote:

> I need to launch the user's default browser and link to a web site.

There have been a number of suggestions on the list for how to do this.
Here's what I do (your solution/s may differ)...

1) License Tuviah Snyder's external collection, available at Cross World's
site (http://www.xworlds.com/) -- it's only $49 and you get a lot of useful
stuff -- there's an "open file" command which achieves the equivalent of
double-clicking a file.

2) Create a simple HTML document (no content) with the following meta tag:
<meta http-equiv="Refresh" content="0; URL=http://www.my-url-here.com/">

3) For Windows, use the external's "open file" command to launch the HTML
file, which will automatically open whatever browser is associated with HTML
files.

4a) For Macintosh, I send a send message to the Finder (via AppleScript)
which references the user's default Internet setup:
send "http://www.my-url-here.com/" to program "Finder" with "GURLGURL"

4b) I also use a backup script which references the HTML document mentioned
above, just in case the first AppleScript launch fails (which it seems to do
on a number of machines, including my own):
if "error" is in the result then
   send "file://" & pathToMyHTMLdoc to program "Finder" with "GURLGURL"
end if

So far I've had good success with these techniques.

Hope this helps.

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: [EMAIL PROTECTED]
                                  Web: www.tactilemedia.com


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to