Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript + Mail (+ Java)



Martin.Maher wrote:

>Being the curious type I am, and armed with the multi-file search feature
>of BB-Edit, I was able to locate the beast. It is contained in the
>Preferences file com.apple.LaunchServices.plist.

One can read or write preferences plists as "domains" using the 'defaults'
command.  AFAIK, it works regardless of plist file-format, too.

Its output is a brief text-oriented notation using parens, brackets,
braces, quotes, etc. to delimit different things.  I think it's called "the
old plist format" or something prosaic, and predates XML.  I vaguely
someone once wrote a parser for it, but I can't remember who, and I don't
have it in my Frequently Pasted URL's file.

For LaunchServices, the domain is com.apple.LaunchServices, so see this:
  defaults read com.apple.LaunchServices

I definitely see a "U:mailto" entry, and the app is listed as
"com.apple.mail", which is another domain for 'defaults', as in:
  defaults read com.apple.mail

to read Mail.app's defaults.

When reading 'man defaults', remember that "domain" refers to an app's
unique CFBundleIdentifier, from its Info.plist file.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.