• 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: Programatically determining default browser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically determining default browser?


  • Subject: Re: Programatically determining default browser?
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 18 Jun 2003 09:46:01 -0400

On Tuesday, June 17, 2003, at 11:33 PM, Roger Howard wrote:

Does anyone have a quick way of programatically determining the default browser on OSX?

best,

Roger

GetDefaultBrowser()
-->alias "titan:Applications:Safari.app:"

on GetDefaultBrowser()
set creatorType to word -1 of (do shell script "defaults read com.apple.LaunchServices |grep -C5 E:html | grep -w LSBundleSignature ")
set {text:creatorType} to (text of creatorType) as text
tell application "Finder"
(application file id creatorType) as alias
end tell
end GetDefaultBrowser
_______________________________________________
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: 
 >Programatically determining default browser? (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: AppleScript Timed Events
  • Next by Date: How to convert string to int in Apple script
  • Previous by thread: Programatically determining default browser?
  • Next by thread: Getting swapfile size
  • Index(es):
    • Date
    • Thread