Skip to main content
Naoki-Hada
Known Participant
May 17, 2018
Answered

[Q] Execute menu command from Script (CEP, ExtendScript)?

  • May 17, 2018
  • 1 reply
  • 3276 views

Hi all,

Is there any API for executing menu command from CEP plugin (or ExtendScript)?

Illustrator has app.executeMenuCommand().

InDesign has app.menuActions.

I'm looking for similar API for Premiere Pro.

Thank you very much,

Naoki

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

No, there is no such API.

Specifically, what menu command(s) are you hoping to trigger? What's the whole workflow?

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
May 18, 2018

No, there is no such API.

Specifically, what menu command(s) are you hoping to trigger? What's the whole workflow?

Naoki-Hada
Known Participant
May 18, 2018

Hi Bruce Bullis

Thank you very much for verification.

# I can stop looking for.

The considering menu commands are most of them without dialog popping up.

The whole workflow is hardware integration. Single button click to trigger menu command.

Current code is CEP plugin and ExtendScript for supporting multiple Adobe apps.

It does not have Control Surface support. I understand that gives much more capability.

InDesign's app.menuActions() is simple, but very powerful for this usage.

// InDesign object duplicate

var ma1 = app.menuActions.itemByID(270);  // copy

var ma2 = app.menuActions.itemByID(271);  // paste

if(ma1.enabled) ma1.invoke();

if(ma2.enabled) ma2.invoke();

I think AfterEffects has similar.

Keyboard shortcut is an option, but it cause many issues on localized environment.

So API access is much more preferred.

Thank you,

Naoki

Bruce Bullis
Community Manager
Community Manager
May 18, 2018

Ok...

What's the whole workflow you'd like to support?