• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AS asking for application on every occasion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: AS asking for application on every occasion (From: Thierry Lavallée <email@hidden>)

  • Prev by Date: Compacting mailboxes
  • Next by Date: Re: AS asking for application on every occasion
  • Previous by thread: Re: AS asking for application on every occasion
  • Next by thread: Re: AS asking for application on every occasion
  • Index(es):
    • Date
    • Thread