On Apr 27, 2007, at 2:31 PM, Arnaud Nicolet wrote:

> Hi,
>
> I'm trying to open iTunes without bringing it to the front. I've
> tried with the MBS plugin.
>
> There are these functions:
> LaunchServicesOpenMBS(item as folderitem) which does not accept
> parameters (so I can't leave iTunes in the background).
>
> LaunchServicesOpenXMBS(documents() as folderitem, parameter as
> LaunchServicesLaunchParameterMBS) which can accept parameters but
> requires an array of documents to be opened using the application. I
> have tried with an array whose uBound is -1, but this makes the
> function to fail.
>
> So I'm looking of a mix of these: a function that allows to open
> iTunes in the background without supplying any document to open.
>
> Using FolderItem.launch(false) does not work (the app is still
> brought to the front). So I'm trying to use the "ParameterMBS"
> DontSwitch with the hope that this is a different flag.
>
> Can anyone help, please?

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.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to