3

Apparently the "Window" menu cannot be accessed directly by scripts. The following code return a null script object:

Object objMB = GetMenuBar();
Object objWindowMenu = objMB.FindMenuItemByName("Window");
OKDialog( "\"Window\" menu object is valid?\n\n" + \
    (objWindowMenu.ScriptObjectIsValid()? "Yes" : "No") );

dialog screenshot

What I'm trying to do is to install my script as menu item under "Windows" menu and at the position before the "Floating Windows" sub menu.

Window menu screen shot

Is there a way to work around this?

1 Answer 1

3

No there isn't. Menu entries from the core application will always sit on top.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.