It's not a silly question at all.
AFAIK, Premiere has no scripting support. Of course that makes panels of limited use...
What you can probably do is show the files in the panel and make them available via drag and drop as file assets. Assuming Premiere supports dropping files to add them to the project (which I believe it does) that should work...
Thanks for response. I'll see if I can make it work with drag&drop.
I've just found following function:
Premiere.app.project.importFiles(arg0 : Object) : boolean
but there is no documentation on how to use that and what this function expects as args0
I think it takes an array of File objects:
Just tried that - Premiere doesn't seem to do anything
Hmm - it worked ok for me. I opened Premiere, created a new project and then ran the script from the ESTK. I didn't try running it without a project open, could that be the issue?
Are you using ActionScript or ExtendScript?
I've tried that call from ESTK - and it worked fine, importing the files into the project.
When I'm try to do the same call from my extension (Flash Builder - mxml, ActionScript), I can see an import progress quickly and then I'm getting File Import Failure - unable to open the file on disk.
You can't use ActionScript with Premiere. There are no CSAW libraries. You need to call ExtendScript.
Why does it work then? I can put a break point and see all object properties and so on?
Sorry I'm a very new to the Adobe extension building, but is it possible to build a Premier Extension (Panel) with ExtendScript? How do I do that?
There are CSAW libraries for Premiere CS6 (new in Extension Builder 2), which means that you can script it using Actionscript. I haven't got an environment set up where I can try the project.importFiles function out right now, so I'm not sure why it isn't working from Actionscript. I think you should be able to pass in either a File or an Array of File objects.
Oops. I did not remember it was added in v. 2...