Re: Obtaining default Email application name
Re: Obtaining default Email application name
- Subject: Re: Obtaining default Email application name
- From: Christopher Stone <email@hidden>
- Date: Sat, 10 Jan 2004 14:21:38 -0600
At 14:18 -0500 01/10/2004, Brooks Bell wrought:
Hi. How does one go about obtaining the default email application name via
AppleScript these days? This would be a purely Jaguar and higher need and
should not involve licensing or any legal complexities.
I see OSAXs like ICScriptor but they look like they might be too old? Is
there a simpler way?
______________________________________________________________________
Greetings,
These old Mac OS 9 osaxen will not function on Mac OS X unless run from a
Classic script editor. Classic and Mac OS X share this data, it actually
works but isn't convenient.
This borrows from something Paul Skinner posted a year ago, so it
*should* work fine on Jaguar.
on GetDefaultEmailer()
set creatorType to word -1 of (do shell script "defaults read
com.apple.LaunchServices | grep -C5 U:mailto | grep -w LSBundleSignature
")
set {text:creatorType} to (text of creatorType) as string
tell application "Finder" to get name of application file id creatorType
end GetDefaultEmailer
GetDefaultEmailer()
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.