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?
Copy link to clipboard
Copied
Hi,
provide the code and someone could perhaps tell you.
Thanks,
Uwe
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.
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
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!
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
Copy link to clipboard
Copied
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();