Still works... I did miss the "local" though and skipped my eyes to the "browser".

In any case, try this form:

tell application "Finder"
  open location "file:///Users/yennie/Desktop/test.html"
end tell

The trick seems to be adding the browser-style protocol to the front for local files: "file://"
You should have 3 slashes total- the third is part of the file path.


HTH

Brian

Uh, Brian... he mentioned a "local file" not a web site. Will this still
work?


Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Yennie
Sent: Saturday, August 09, 2003 1:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Launching a local file in the default browser


tell application "Finder" open location "http://www.apple.com"; end tell

... "do" as AppleScript of course

Yep, the same ol' question:  how do I launch a local file in the
default
browser on Mac OS X?

And for future reference: Where is the definitive answer archived?

_______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metac> ard



_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



_______________________________________________ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to