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

Re: Script to get default browser?


  • Subject: Re: Script to get default browser?
  • From: Paul Skinner <email@hidden>
  • Date: Thu, 9 Jan 2003 22:36:43 -0500

set currentState to do shell script "defaults read com.apple.LaunchServices "
set AppleScript's text item delimiters to "E:html\" = (
{
LSBundleIdentifier = \""
set currentState to text item 2 of currentState
set AppleScript's text item delimiters to "\";"
set currentBrowser to text item 1 of currentState

-->"com.apple.safari"
--
Paul Skinner

On Thursday, January 9, 2003, at 07:01 PM, Mr Tea wrote:

Can I use AppleScript to find out what the current default browser is?

I peeped into the Terminal and had a look at man defaults, but was quickly
overwhelmed and had to retire.


Thanks


Mr Tea
_______________________________________________
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.

  • Follow-Ups:
    • Re: Script to get default browser? > Paul S.
      • From: Mr Tea <email@hidden>
References: 
 >Script to get default browser? (From: Mr Tea <email@hidden>)

  • Prev by Date: [OT] QT 6.1 Released
  • Next by Date: Re: Script to get default browser?
  • Previous by thread: Re: Script to get default browser?
  • Next by thread: Re: Script to get default browser? > Paul S.
  • Index(es):
    • Date
    • Thread