• 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: iTunes AppleScript won't use default browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes AppleScript won't use default browser


  • Subject: Re: iTunes AppleScript won't use default browser
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 01 Dec 2003 11:22:10 -0700

Entity Bob Swerdlow spoke thus:

> So, is there a way to get the name of the default browser in AppleScript?


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

--
There are two kinds of people in the world, those who think the world is a
dichotomy, and those who don't - - - Gnarlodious
_______________________________________________
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: 
 >iTunes AppleScript won't use default browser (From: "Bob Swerdlow" <email@hidden>)

  • Prev by Date: iTunes AppleScript won't use default browser
  • Next by Date: Re: OS X and RegEx Commands
  • Previous by thread: iTunes AppleScript won't use default browser
  • Next by thread: Re: iTunes AppleScript won't use default browser
  • Index(es):
    • Date
    • Thread