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

Closing menuActions

Participant ,
Jul 20, 2017 Jul 20, 2017

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
650
Translate
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

Hi,

provide the code and someone could perhaps tell you.

Thanks,
Uwe

Translate
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

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.

Translate
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

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

Translate
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

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!

Translate
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

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

Translate
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
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();

Translate
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