Some more data on this subject. Turns out that I can call
PBGetCatInfoSync on a package as long as I append ".app" to the end of
the file name. Same thing with LaunchApplication but there's something
screwy there. I'm not 100% sure but it's looking like the PPC version
of a universal binary is being launched not the x86 (which is what I'm
running on) and that code starts to run and then shuts down right away.
> Some more data on this subject. Turns out that I can call
> PBGetCatInfoSync on a package as long as I append ".app" to the end of
> the file name. Same thing with LaunchApplication but there's something
> screwy there. I'm not 100% sure but it's looking like the PPC version
> of a universal binary is being launched not the x86 (which is what I'm
> running on) and that code starts to run and then shuts down right away.
LaunchApplication is a pretty old API (as is PBGetCatInfoSync). Look
into Launch Services.
RogueWarrior - 29 Sep 2006 16:29 GMT
> LaunchApplication is a pretty old API (as is PBGetCatInfoSync). Look
> into Launch Services.
Launch Services works just fine as long as you have an FSRef.
Fortunately there's a routine to make one from an FSSpec.