realbasic-nug
[Top] [All Lists]

LaunchServicesOpenXMBS without opening documents?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: LaunchServicesOpenXMBS without opening documents?
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Fri, 27 Apr 2007 20:31:40 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
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?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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


<Prev in Thread] Current Thread [Next in Thread>