CEP-Resources icon indicating copy to clipboard operation
CEP-Resources copied to clipboard

Adobe Audition and CEP

Open boredom2 opened this issue 4 years ago • 4 comments

Hi there,

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

  • how to open/add a File to Audion via CEP?
    • in PhotoShop, it would be "app.open" (but thats undefined")
    • in Premiere it would be app.project.importFiles, but there is no "app.project"
    • I was unable to find out how this works here and I couldnt find any kind of Documentation for Audition.
  • The next Part would be - how to save a File from CEP? Is there a way to, lets say, save it "as mp3"?

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

boredom2 avatar Dec 25 '20 22:12 boredom2

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)

sir-editor avatar Dec 27 '20 19:12 sir-editor

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 avatar Apr 14 '21 20:04 ryaudio

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)
}

ryaudio avatar Apr 19 '21 23:04 ryaudio

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

hqy2000 avatar May 17 '21 11:05 hqy2000