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

Closing menuActions

Participant ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

Hi!

I opened the Check Spelling menu using the invoke( ) method on menuActions. But how I close this? Is not using the close( )?.

Any help?

TOPICS
Scripting

Views

501

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
Community Expert ,
Jul 20, 2017 Jul 20, 2017

Copy link to clipboard

Copied

Hi,

provide the code and someone could perhaps tell you.

Thanks,
Uwe

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
Participant ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Hi,

Is only this:

var myMenu = app.menuActions.item('Verificar ortografia...');

myMenu.invoke();

My Indesign is in portuguese, so "Verificar ortografia..." is the "Check Spelling..." menu.

I'm studying Javascript in Indesign, and get stuck closing these menus.

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
Guide ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Hi,

The locale-independent way to invoke the check spelling menu action is:

var myMenuAction = app.menuActions.item("$ID/Check Spelling...");

myMenuAction.invoke();

Now, as a result, this action opens a (native) non-modal dialog. I don't think you can control it from a script.

@+

Marc

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
Participant ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Really? So sad...

Because when I close the active document, this window stay opened... is bored but is not the end of the world I can close by myself.

Thank you for your attention!

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
Community Expert ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

Oh. That can be changed if you reset your current workspace.

Sorry. Did not test this before. Resetting the current workspace does not help.

Regards,
Uwe

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
Enthusiast ,
Sep 21, 2017 Sep 21, 2017

Copy link to clipboard

Copied

LATEST

I'm trying to invoke the Find Font menuAction in CS6 and the screen blinks (I can see the dialog blinking). But the dialog isn't shown.

In CC 2017 it works. Do you know any workaround to fix this?

var myMenuAction = app.menuActions.item("$ID/Find Font...");

myMenuAction.invoke();

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