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

RE: Default Email App


  • Subject: RE: Default Email App
  • From: David Marshall <email@hidden>
  • Date: Thu, 4 Aug 2005 19:45:59 -0400

On Thu, 04 Aug 2005 11:37:04 -0700, Bruce Robertson wrote:

How do you determine the user's default email app?

Building on Dave Balderstone's approach, here's a script that works in OS X 10.2.6 (AS 1.9.1):


set thePath to path to preferences folder from user domain as Unicode text
set theFile to thePath & "com.apple.LaunchServices.plist"
set theInfo to read alias theFile
set AppleScript's text item delimiters to "<key>U:mailto</key>
<array>
<dict>
<key>LSBundleIdentifier</key>
<string>"
set thisPart to second text item of theInfo
set AppleScript's text item delimiters to "</string>"
set thePhrase to first text item of thisPart
set AppleScript's text item delimiters to "."
set theApp to last text item of thePhrase
set AppleScript's text item delimiters to ""
display dialog "Your current default email app is '" & theApp & "'"


- - - - -

Dave

_______________________________________________
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


  • Prev by Date: Re: When is a file open but not open?
  • Next by Date: Finder Window column order/width in list view
  • Previous by thread: Re: Creating a shape with no stroke (ppt)
  • Next by thread: Finder Window column order/width in list view
  • Index(es):
    • Date
    • Thread