On Apr 27, 2007, at 3:09 PM, Arnaud Nicolet wrote:
> Le 27 avr. 07 à 20:40 Soir, Charles Yeomans a écrit:
>
>> The LaunchServices function you want is LSOpenApplication, with the
>> kLSLaunchDontSwitch option. If the MBS plugins don't have it, then
>> it is not hard to declare and call it.
>
> In fact, it sounds harder than I thought.
> The LSOpenApplication requires a parameter (LSApplicationParameters)
> that sounds "enhanced" for me (I'm not an expert on converting c
> declares to RB).
>
> I have this structure to be passed:
>
> struct LSApplicationParameters {
> CFIndex version;
> LSLaunchFlags flags;
> const FSRef * application;
> void * asyncLaunchRefCon;
> CFDictionaryRef environment;
> CFArrayRef argv;
> AppleEvent * initialEvent
> };
> typedef struct LSApplicationParameters LSApplicationParameters;
>
> I don't know what is the version I must provide.
> Also, I don't know what type "flags" is expected to be (probably an
> integer, but it is not said).
> I'm lost for most of the parameters.
I have a chapter on Launch Services in my book on declares, but this
function was added in Tiger, and so was not covered. Hang on.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>