Re: AS asking for application on every occasion
Re: AS asking for application on every occasion
- Subject: Re: AS asking for application on every occasion
- From: Gnarlodious <email@hidden>
- Date: Fri, 09 Jul 2004 12:12:40 -0600
here's a piece of a script I use to open a URL in the default browser. If
you change "html" to "jpg" it will return GC. It should give you some ideas.
try
set defaultBrowser to word -1 of ,
(do shell script "defaults read com.apple.LaunchServices | grep -C5
E:html | grep -w LSBundleSignature")
set {text:defaultBrowser} to (text of defaultBrowser) as text
tell application "Finder" to set the defaultBrowser to the name of
application file id defaultBrowser as text
end try
-- Gnarlie
Entity Thierry Lavallie spoke thus:
>
Thanks Walter,
>
Hard Coding "GraphicConverter PPC" as the Application names, brings me back
>
to the start, where I need the name of the application responding to GKON on
>
the user's computer.
>
>
Am I missing something?
>
Thanks!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.