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)



On 1/13/06, Jeremy Wood <email@hidden> 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. ...
> >
> >  I would use Launch Services API to get at this information via JNI and
> >  not parse that file directly.
>
> Hmmmmm...
>
> Why do you advise this? Are you just providing an alternative, or are there hidden pitfalls that I don't know about?

The format of the launch services plist is an implementation detail
that should not be depended on.

> As Martin just pointed out, I'm not familiar with an API for Launch Services. [snip] so I'm under the impression there's no Java API to query this value.

That is why I said use JNI. Launch Service is a Mac OS X API (under
the Carbon umbrella).

<http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCIntro/chapter_1_section_1.html#//apple_ref/doc/uid/TP30000999-CH201>

<http://developer.apple.com/technotes/tn/tn2017.html>

-Shawn
 _______________________________________________
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

References: 
 >Re: AppleScript + Mail (+ Java) (From: email@hidden)
 >Re: AppleScript + Mail (+ Java) (From: Jeremy Wood <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.