• 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: Obtaining default Email application name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Obtaining default Email application name
      • From: Brooks Bell <email@hidden>
References: 
 >Obtaining default Email application name (From: Brooks Bell <email@hidden>)

  • Prev by Date: Selection in iPhoto
  • Next by Date: Re: dates as text
  • Previous by thread: Obtaining default Email application name
  • Next by thread: Re: Obtaining default Email application name
  • Index(es):
    • Date
    • Thread