Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.61k stars 824 forks source link

Adobe Audition and CEP #337

Open boredom2 opened 3 years ago

boredom2 commented 3 years ago

Hi there,

I searched for quite a time and even tried various Guessed, but I was unable to find out:

Is there anyone, who can point me in the right Direction or has a link to a Sample or propper Docs?

Thanks for your Help. Christoph

sir-editor commented 3 years ago

I think a mix of this panel sample and Property Explorer extension will help you.

E.g. here I invoke open file command: app.invokeCommand(Application.COMMAND_FILE_OPEN)

ryaudio commented 3 years ago

Did you figure this out? I'm trying to either open a new document or change the path of an existing one? I don't see how I can pass a path to invokeCommand. I have to bring up a dialog box which I don't want.

ryaudio commented 3 years ago

The answer was the following for other lost souls like myself.

function importPath(path) {
    var openParam = new DocumentOpenParameter();
    openParam.path = path;
    var newDoc = app.openDocument(openParam)
}
hqy2000 commented 3 years ago

FYI, most of the documentation is in "Object Model Viewer" from Adobe ExtendScriptToolkit. image