Skip navigation.
 
mlRe: Creator -> AppPath
FROM : Martin-Gilles Lavoie
DATE : Wed Oct 13 19:52:02 2004

Le 05 janv. 2004, à 17:51, Bob Ippolito a écrit :

>
> On Jan 5, 2004, at 5:28 PM, SD wrote:
>

>> I know I've done this before but I can't remember or find it.
>>
>> If I have a Creator code, how do I get the path name to the
>> application.

>
> Try LaunchServices, I believe you want to be using
> LSGetApplicationForInfo
>
> -bob


Sorry about the quick time warp backward here. The original posting of
this was in january.

I'm well aware of some shortcomings of LSGetApplicationForInfo after
having read a number of posts about it in this mailing list.

The one thing I'm looking for but can't find any references to is what
could be summarised as

   LSSetApplicationForInfo
     ^^^

the "Set" equivalent to the "Get" function. Getting info is all fine
and dandy, but the Launch Services seems to have precedence over the
Internet Config DB. As a result, detecting the current handler of a
particular file type, prompting the user (because otherwise, it'd be
impolite) and then SETTING the default app handler to something else is
a breeze with IC. But when the Finder launches a document, it looks in
the Launch Services DB first, thus bypassing any setting the user might
want to use.

Basically, I'm trying to offer the same kind of possibility that Safari
does: setting the default handler for a given doc type.

Anyone?

Related mailsAuthorDate
mlCreator -> AppPath SD Jan 5, 14:29
mlRe: Creator -> AppPath Finlay Dobbie Jan 5, 14:48
mlRe: Creator -> AppPath Bob Ippolito Jan 5, 14:51
mlRe: Creator -> AppPath Martin-Gilles Lavo… Oct 13, 19:52