RE: Default Email App
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