Re: Determining the Default Mail App
Re: Determining the Default Mail App
- Subject: Re: Determining the Default Mail App
- From: kai <email@hidden>
- Date: Tue, 7 Feb 2006 00:20:08 +0000
On 6 Feb 2006, at 22:06, Adam Bell wrote:
I'll check that the mailer version works in Jag. before I bundle it
up for postiing. We do know that it works for Kai.
Just to clarify, can we confirm whether or not this alternative
works? (While it may be slightly more verbose, it executes here
between 2.5 to 3 times faster.)
-------------------
on defaultApp for i
set p to POSIX path of (path to preferences) &
"com.apple.LaunchServices.plist"
tell application "System Events" to set i to value of property list
item ¬
"LSBundleSignature" of property list item 1 of property list item ¬
("U:" & i) of property list item "LSPrefsBindings" of property list
file p
tell application "Finder" to (get name of application file id i)'s
text 1 thru -5
end defaultApp
-------------------
(* Results here *)
defaultApp for "ftp"
--> "Finder"
defaultApp for "help"
--> "Help Viewer"
defaultApp for "http"
--> "Safari"
defaultApp for "mailto"
--> "Mail"
defaultApp for "quicktime"
--> "QuickTime Player"
defaultApp for "zip"
--> "StuffIt Expander"
-------------------
---
kai
_______________________________________________
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