• 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: Determining the Default Mail App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining the Default Mail App


  • Subject: Re: Determining the Default Mail App
  • From: "J. Stewart" <email@hidden>
  • Date: Tue, 7 Feb 2006 17:00:21 -0500

Yet another method of determining the default browser. This is for the less regex inclined :)


--> cut <--
set defaultBrowser to word -1 of (do shell script "defaults read com.apple.LaunchServices | grep -C5 E:html  | grep -w LSBundleSignature")
tell application "Finder" to name of application file id defaultBrowser
--> cut <--

The previously posted regex methods failed to return anything (just an emopty string) on mine or Kai's machines. This method returns "Safari.app" OMM.

JBS
--
When you are dissatisfied and would like to go back to youth, think of Algebra. — Will Rogers
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Determining the Default Mail App (From: Adam Bell <email@hidden>)

  • Prev by Date: Re: Determining the Default Mail App
  • Next by Date: Re: Anyone scripting Toast 7?
  • Previous by thread: Re: Determining the Default Mail App
  • Next by thread: Re: Determining the Default Mail App
  • Index(es):
    • Date
    • Thread