• 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: 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
  • Follow-Ups:
    • Re: Determining the Default Mail App
      • From: Mr Tea <email@hidden>
    • Re: Determining the Default Mail App
      • From: Todd Geist <email@hidden>
    • Re: Determining the Default Mail App
      • From: Adam Bell <email@hidden>
References: 
 >Re: Determining the Default Mail App (From: Gnarlodious <email@hidden>)
 >Re: Determining the Default Mail App (From: kai <email@hidden>)
 >Re: Determining the Default Mail App (From: Adam Bell <email@hidden>)

  • Prev by Date: Re: App scripts in system script menu
  • Next by Date: Re: Determining the Default Mail App
  • Previous by thread: Re: Determining the Default Mail App
  • Next by thread: Re: Determining the Default Mail App
  • Index(es):
    • Date
    • Thread