Launching a local file in the default browser

Alain Farmer alain_farmer at yahoo.com
Mon Aug 18 16:03:02 EDT 2003


Hello,

Here's some help :

> The following puts up a "compiler error"...
>   get "send open file" && tURL && "to Finder"
>   do it as AppleScript
>   put the result

You are not quoting your arguments. Try this :

   put quote & tURL & quote into tURL
   put quote & "Finder" & quote into tAPP
   get "send open file" && tURL && "to" && tAPP
   do it as AppleScript
   put the result

> Any offerings? Still much needed here!

Here is an AppleScript droplet that tells you what the
Creator and Filetype of the file dropped on it are. It
is coded as a droplet, but it could be adapted such
that the fileReference is passed a parameter. An
*easy* task that will be left to the reader to
accomplish.

http://ufp.uqam.ca/pan/misc/ShowCreatorAndType.sit

Hope this helps,

Alain F

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the metacard mailing list