View Full Version : open the file browser by script?


babedieboe
01-12-2005, 01:51 AM
Is there any way to open the internal file browser by scripting? JS or VB.
I hate to open it f.e. in VB with a commondialog or in JS with the File
object..... i want the internal file browser to open........

xbytor
01-12-2005, 05:58 AM
Take a look and see if ScriptListener is spitting anything out. I doubt that it is. There is probably some way of doing it via the same APIs that SL "produces", but with out SDK docs and/or header files, figuring out what calls to make would just be guesswork if its possible at all.

ciao,
-X

babedieboe
01-12-2005, 06:00 AM
i tired that before posting of course :happy: ; it doesnt no.

so you say hooking to the application through the api?

xbytor
01-12-2005, 12:01 PM
i tired that before posting of course :happy: ; it doesnt no.

so you say hooking to the application through the api?

The FileBrowser is at least partially accessible via the ActionReference/ActionDescriptor/Application.executeAction() framework.

There is code in Dr. Brown's Image Processor2.0 using this interface that can retrieve the list of selected and/or flagged files in the file browser so there may be a way of opening the browser using similar code.

I haven't really looked beyond getting the selected files from the file browser so I don't know what is and isn't possible.

ciao,
-X

babedieboe
01-13-2005, 09:29 AM
i've seen that yes. but guessing what command to use to open it? :sad: