How to disable the menu using JS?

Hello.

I have add menu with the help of JS.

I want to disable an added menu item.

But the active menu option is read only.

App.menus.Item("$ID/main"). Submenus.Item ("MyTestMenu").menuItems.item ("My Menu Item 2"). enabled = false;

How to disable the menu value?

Thank you.

Hi K159,.

It's only the ScriptMenuAction.enabled property is rewritable. This prevents the script layer interfere with regular InDesign menu items.

So, in light of your custom object of MenuItem (myMenuItem), his associatedMenuAction should refer to a ScriptMenuAction which can be turned off:

myMenuItem.associatedMenuAction.enabled = false;

This translates by disabling the menu option as well.

@+

Marc

Tags: InDesign

Similar Questions

  • How to disable the menu emphasis of character in El Capitan

    My computer is very strange as if it had a "life of its own! What happened (and I've been on the phone for hours with Apple Support) are sometimes (intermittently) when I type a letter (usually an ' e'), only a bubble appears foreign letters with accents, etc. and then the computer continues to type this letter. then clears do not enter what I type and finally, I have to reboot the machine to stop the weird behavior. I recently discovered that Apple has this feature if one holds a letter (e for example) instead of a series of e (Melody), you get instead a bubble with foreign accented characters in a pop-up bubble. I really don't want this feature, and I read somewhere that if we use "utilities" then select "Terminal" and enter the following command "write false-bool g ApplePressAndHoldEnabled ' and then log on to the user account and log in this feature is disabled when pressing and now the character e you get an 'e' string (eeeeeeeee) it was in an article for the Mountain Lion and I wonder if it will work '" with El Capitan (Jim Tanous @mggjim).

    I hope that if this feature is disabled for entry 'possessed' of the characters and then erase them with a sound in the background to stop that occur. The only way I can take control of the machine after the start of this weird behavior is to restart the computer.

    Does anyone have any idea why my machine is acting this way and what I can do to stop it.

    Thank you.

    Here is the link:

    http://www.tekrevue.com/tip/how-to-disable-the-character-accent-menu-in-OS-x-MOU preu-lion.

    Yes.  This Terminal command will work with El Capitan.  Diacritical accents don't appear that if you hold that special touch for a period of time, how long is determined by the time delay until repeat programmed into the system/keyboard/keyboard preferences panel.

  • How to disable the menu popping up when I press the ALT key.

    Is there a way I can disable the menu that appears when I press the ALT key? I use it as a shortcut on teamspeak and it's really annoying to see the menu everytime I press ALT.

    See this article:
    https://support.Mozilla.org/en-us/KB/what-happened-to-the-file-edit-and-view-menus

    If you have the menu bar to show all the time, the Alt will be disabled and hit don't reveal not the menu bar. Use show/hide toolbars for the menu bar always see in Firefox.

  • How to disable the menu options?

    Hi all

    We have oracle EBS 11i (11.5.10.2).

    Now, on the purchase order (POXPOEPO. FMB), I want to disable/hide the option to drop named 'printed '.

    Navigation-> form IN. path > tools > copy Documt (you want to disable/hide).

    Can anyone suggest me how to proceed?

    Thank you
    concerning
    Sanjay

    "How to disable the Copy Document function in tools (Doc ID 360590.1)"

    This allows to limit the service to selected responsibilities:

    Copy of Document function cannot be excluded in the setup of the responsibility

    System administrator: Security > responsibility > define > tab: Exclusions of Menu

    Insert a new record as follows

    Type = Function
    Name = IN. printed

    NOTE: After above installation was done, the service will remain visible. However, when you click on it, the user will received message 'feature not available to this responsibility. Change the responsibilities or contact your system administrator. »

  • How to change the menu after InDesign is run?

    Hello.

    I want to change the menu after the charge of the InDesign menu.

    For example, if the 'Login' success, change the menu as "logout".

    If it is not possible, please tell me how to disable the menu once the menu is loaded.

    Thank you.

    Hi K159,.

    with the UpdateActionStates of your component of the action function, you get an IActionStateList Interface where you can change the name of the menu item.

    Markus

  • How can I disable the menu items using manu, Photoshop cs6?

    How can I disable the menu items using manu, Photoshop cs6?

    I packed Photoshop cs6 using AAMEE CS6.

    I need some menu items to disable.

    can someone please process to do, or what records or files need to edit.

    Enjoy the immediate response.

    Thanks in advance.

    There is another discussion on the same topic: http://forums.adobe.com/thread/1234967?tstart=0

    Perhaps the same company has contracted two of your companies

  • How to disable the built-in PDF Viewer and use another Viewer at all times?

    How to disable the built-in PDF Viewer and use Adobe Reader to view the PDF files, without having to set this preference, whenever I open Firefox? The default setting to "Use Adobe Acrobat (in Firefox)". Thank you.

    It's strange. The integrated Viewer - Viewer by default - is described by the expression 'Preview in Firefox' and you will have changed to "Use Adobe Acrobat (in Firefox)".

    Well... you or an add-on or another program on your system must be changed.

    What happens if you disable the Adobe Acrobat plugin (not the extension to create a PDF file, leave it active). Here's how you can try this:

    Open the page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. On the right side, find "Adobe Acrobat" and change the permission 'never enable '.

    Then in the Options page, Applications Panel, change your preference for "Portable Document Format (PDF)" to "Always ask" so you get the dialog box to download instead of the PDF, open in a tab.

    It sticks?

  • How to disable the touch pad so I can use my wireless mouse?

    How can I disable the touchpad on my SONY VAIO now that I use a wireless mouse?
    The problem is that the cursor continues to jump back when I type, then this morrectiony sentence inserted into itself.  As a demonstration that I type this this setence without any c. REA touch pad is soplutiobn PLease help! L probme asnand I guess that this turning point
    It's the
    Help, please!
    Caroline Reid

    See http://esupport.sony.com/EN/tutorials/pc/cpvct000001_text.pdf (don't forget the warning to connect an external mouse before disabling the touchpad).

    Another version:
    http://GeekDrop.com/content/how-to-disable-the-touch-pad-on-Sony-VAIO-and-of-course-enable-it-again

  • I use a mouse in my Windows 7 laptop. How to disable the touchpad pointing device?

    I always use my mouse to my Windows 7 laptop.  I don't want the touchpad pointing device as my fingers touch when writing and everything spoil.  How to disable the touchpad pointing device? Thank you

    What is the brand and model of your laptop? What version of Windows 7?

    Many laptops have a key that will enable/disable the touchpad - mine is on the top row of keys where the function keys.

    You could also open mouse in Control Panel and look for an option here.

    I hope this helps.

  • using LIVE MAIL in Windows 7, the drafting by email, I'm in 'Overtype' mode and I don't want that. Anyone know how to disable the mode 'Overtype '?

    using LIVE MAIL in Windows 7, the drafting by email, I'm in 'Overtype' mode and I don't want that. Anyone know how to disable the mode 'Overtype '?

    by pressing the key on the keyboard switches between "insert" and "crush" I think.

  • Installed by windows error 8 in 2 comp. How to disable the product key/uninstall windows 8 laptop in order to install and use on your PC

    I just bought a new windows 8 CD. It has been stated in the CD that I can use to download/install up to 5 times. So I installed windows 8 to my PC and my laptop. I had matched in the product key to my laptop, after I tried seizes the same product key to my PC, which results in an error whichn I had discovered later that you can only use 1 product key for 1 comp.

    So my dilemma is now I want to use the product key on my PC and not on my laptop. How to disable the product key/uninstall 8 windows in my laptop so I can use the product key on my PC since I use my PC more.

    Also there is a time at which I should activate my windows 8 on my PC? because I'm afraid I'm not able to use it and I will get blocked by microsoft until I can fix this error.

    Please help me on how I can solve this problem.

    Thank you

    Press the Windows key + X

    Click prompt (Admin)

    At the command prompt, type: slmgr.vbs - upk

    Press enter, this will uninstall the product key of the computer and to the evaluation mode, you are now free to use it on another computer.

    On the computer where you want to enable Windows 8, you will need to reactivate by phone:

    1. press the Windows key + X , and then clickrun, and then type: slui.exe 4

    2. then press the ENTER"" key.

    3. Select your "country" in the list.

    4. choose the option "activate phone".

    5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.

    6. explain your problem clearly to the support person.

  • I want to know how to disable the automatic download of the documents in my player. I used to get a dialog that ask me if I wanted to view or download. I click an option that says always perform this action to download and now they still download. I want

    I want to know how to disable the automatic download of the documents in my player. I used to get a dialog that ask me if I wanted to view or download. I click an option that says always perform this action to download and now they still download. I want to return it to where to get the dialog box that will give me the opportunity to view or download.

    Review the settings of your browser.

  • How to make the menu letters more when you use Lightroom 4?

    How to make the menu letters more when you use Lightroom 4?

    Hey Lenovo W510,.

    The police of interface only option in Lightroom of sizing is in the preferences > Interface > panels > Font Size (Small/Large)

    The configuration in grand and then restarting Lightroom will increase the fonts you see in the signs that describe the functions of LR.

    If you're on Mac or Windows you might also decrease your screen/display resolution that will make everything look bigger on your screen.

    Hope this helps,

    Kind regards

    Pete

  • How to disable the icon menu iin Forms 6i

    Hello world
    I would like to know how can I disable the menu of the icon in forms 6i, who appears every time that you run a form that has all the icons associated with the backup, the exit, then save, etc.

    Thanks in advance!

    The default menu is by DEFAULT & SMARTBAR (Module of Menu module-level property). If you remove SMARTBAR, you will have no smartbar at all.

    Published by: InoL on March 31, 2011 11:55

  • How can I disable the menu

    I created 2 elements menu say save, open, and I want to disable the menu item open. Can Hoiw I do this task?

    You can put the conditional code in your makemenu method to disable a menu.

    Something like:

    protected void makeMenu( Menu menu, int instance )
    {
        menu.add(saveMenu);
    
        if(condition == true)
        {
           menu.add(openMenu);
        }
    }
    

    Concerning

    Bika

Maybe you are looking for

  • Early MacBook Pro - battery (old and new) lasts only 45 min

    Early macbook pro 13 " -Autonomy had become terrible, about 30 mins web browsing, the warning came on she was less than 80%, or whatever the threshold is battery.  To obtain the life expectancy of 6 to 8 hours.  I have owned since new, no spills or d

  • My Documents keeps opening when I open Outlook

    When I open Outlook 'My documents' keeps opening a widow in the middle of the screen. I ran norton several times and it stops for a day or two that is starting to happen again. I read it could be a corrupted reg file. I'm not sure were to start the s

  • Vista password does not

    When I turn on my acer laptop Extenza the first screen has a block connection and at the bottom of the screen, it says "Windows Vista Premium Home"... The password that I entered on this page for years is no longer works.  We don't change anything. B

  • How to connect to webservice in OS 5.0

    I have a webservice and I am used to its function of connection he and cal and how I test locally Please someone help me

  • Failing to go to the page external Web - Session being reset

    Hello guys,. I have a problem I am puzzled at the time and thought that you would be able to shed light on. I have an ASA 5520 for my firewall. (ver 8.0 (4)) I have an external hyperlink that works read at home, but not behind my corperate firewall.