Skip to main content
Legend
February 13, 2019
Answered

Possible to launch a CEP panel from ExtendScript code?

  • February 13, 2019
  • 2 replies
  • 4597 views

Hello,

Is it possible to launch a CEP panel from ExtendScript code?  In my previous thread that I posted, I was asking about auto-loading CEP panels from the <StartOn> element in the Manifest XML, but that doesn't seem to work.  So, I thought that maybe there was a method to explicitly launch a CEP panel from an ExtendScript panel.  Any ideas?

Thanks,
Arie

This topic has been closed for replies.
Correct answer Bruce Bullis

Is it possible to launch a CEP panel from ExtendScript code?

No. CEP panels can use JavaScript to open other CEP panels; see CEP HTML Test Panel.

Several control-minded broadcasters use an invisible panel to forcibly bring up their workflow management panel, in PPro. 

I know of no way to use ExtendScript to open a CEP panel, without “cheating” and passing messages back to the CEP layer.

2 replies

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
March 28, 2019

Is it possible to launch a CEP panel from ExtendScript code?

No. CEP panels can use JavaScript to open other CEP panels; see CEP HTML Test Panel.

Several control-minded broadcasters use an invisible panel to forcibly bring up their workflow management panel, in PPro. 

I know of no way to use ExtendScript to open a CEP panel, without “cheating” and passing messages back to the CEP layer.

Legend
March 28, 2019

Thanks, Bruce, for confirming!  Much appreciated.

—Arie

Community Expert
February 14, 2019

Hi Arie,

This is tested on InDesign and works fine. You can launch any CEP panel from jsx code using the following

app.panels.itemByName("Your panel name as it appears under Windows>Extensions").visible = true

So if you want to launch your panels at startup you can put the code above in a startup script and it should do the trick.

-Manan

-Manan
Legend
February 14, 2019

Hi Manan,

Thank you for sharing that code, and thank you for making me aware of the app.panels object — much appreciated.  I’m working on a product for After Effects.  I checked to see if app.panels is documented for After Effects Scripting, but it doesn’t look like it’s in there:

http://docs.aenhancers.com/general/application/?highlight=app%20object

I’ll test it out and post my findings

Thanks,

Arie

Community Expert
February 14, 2019

yo Arie! what's up?

here's the simplest way i could find:

var commandID = app.findMenuCommandId("Your panel name as it appears in the menu");

app.executeCommand(commandID);

i am very much interested in more info about the presence of "app.panels.itemByName" in AE, so let's keep this thread going.

:-)