• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
May 17, 2018 May 17, 2018

Copy link to clipboard

Copied

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

TOPICS
SDK

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 18, 2018 May 18, 2018

No, there is no such API.

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

Votes

Translate

Translate
Adobe Employee ,
May 18, 2018 May 18, 2018

Copy link to clipboard

Copied

No, there is no such API.

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 18, 2018 May 18, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 18, 2018 May 18, 2018

Copy link to clipboard

Copied

Ok...

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 31, 2018 May 31, 2018

Copy link to clipboard

Copied

Hi Bruce Bullis

I wrote some in last comment. But it might be not clear.

Whole workflow I expected is following.

Hardware input -> OS level driver (C++) -> Adobe CEP Plugin -> ExtendScript -> Premiere Pro

Commands are single action without dialog.

Preferred not use keyboard shortcuts as localization issue.

Thank you,

Naoki

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 31, 2018 May 31, 2018

Copy link to clipboard

Copied

LATEST

Yes, I realize you're trying to trigger menu items; please describe the actual workflows you'd like to support.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines