Re: Determining the Default Mail App
Re: Determining the Default Mail App
- Subject: Re: Determining the Default Mail App
- From: Adam Bell <email@hidden>
- Date: Mon, 6 Feb 2006 20:33:45 -0400
For me (10.4.4) it errors for "ftp" (get name), "help" (set i to value), "http" (get name), and "zip" (set i to value). Mailto is correct, and so is QuickTime.
On 2/6/06, kai <email@hidden> wrote:
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 (
_______________________________________________
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