How Do I Remove a menu?

I added some menus with CS3, using javascriptm and now I can not get them to go away...
Is there a remove command? I can not find anything in the api about remove, as a matter of fact all im using the the InDesign CS3 Scripting Guide:Javascipt, and that does not have a reference in it for menus.
Thanks
Mike

Hi Mike,
Actually, it’s not a menu, but submenu you can’t get rid of.
Solution #1 – Delete preferences: launch InDesign and press Cmd + Opt + Shift + Control (on Mac) or Control + Alt + Shift (on PC) and when you see — “Delete InDesign preference files?” — choose Yes.
Solution #2 (less drastic) – I prefer to kill submenus in JavaScript Console.
Let’s assume that I added "Script" submenu to the Main menu and want to get rid of it.
All I have to do is just type the following line and press Enter/Return.
app.menus.item("$ID/Main").submenus.item("Script").remove();
Kasyan

Similar Messages

  • How do I remove the menu button? The Customize option doesn't seem to work for that.

    How do I remove the menu button? [That IChing looking three line icon on the toolbar.]
    The toolbar Customize option doesn't seem to work, and it seems a waste to have a button that duplicates the menus. I'd like to swap it out for the NoScript icon.

    Hi, ''I can't recommend that you do it'', but If you really are determined, [http://www.tweakguides.com/Firefox_12.html this article] may help.

  • How can i remove the menu item from a menu

    how can i remove the JMenuItem from a JMenu at run time.
    thanks in advance

    This is in JMenu from the api
    void remove(JMenuItem item)
    Removes the specified menu item from this menu.
    You must download the api! it helps a lot!
    You can do that or if you need to access it again just set it visible(false);

  • HT2473 how do i remove a menu item?

    i have accidentally added a menu item into a drop down menu.
    how can i remove it?
    my thanks in advance

    If you are talking the icons in the upper right hand corner, that means holding down the command key as you drag the icon off the upper right corner off the menubar itself.  Menuitems on the left of the help menu are application preference specific.  Not all applications let you control the menubar.   Applications with in the upper right can hide the entire menubar when you click on that icon in the upper right.    To bring it back, click on in the same upper right corner.  10.7 and later have that full screen capability built-in for applications that support it.  

  • How to hide/remove a menu item in Acrobat X

    Hi,
    I have a plugin created in acrobat sdk 9, running on acrobat x. I want to hide/remove the "Manage Trusted Identities" menu item, found under "Sign & certify (panel) > more sign & certify menu."
    How can i achieve this using javascript?
    thanks in advance,

    Well, I dont want users to be able to access/modify the trusted identities, so i decided to remove/hide the:
    Acrobat X > "Sign & Certify (panel)" > More sign & certify (i think its a menu) > Manage trusted identities (menu item).
    And can i hide/remove above mentioned item in any way other than javascript, like plugin code?
    Is it in any way possible to prevent user from accessing/modifying the acrobat trusted indentities?
    Thanks.

  • How can I remove some menu items in the VC++ "Full featured" example that came with TestStand 3.5.

    The full featured operator interface example of VC++ contains several menus such as File, Execution, Debug, Tools, and Help.  I would like to remove or gray out some of the items base on the access privilege of the user's login.  For instance if a user login as admin, I would turn on all the features. However, if an operator login to run a test sequence, I would only provide limited menu options.

    The display of the menu items is already depending on the user's privilieges.
    1/ Modify the privileges of each user profile to enable or disable some menu accesses (Look at "Using TestStand" manual, chapter 7).
    2/ If you need to change the TestStand default behaviour, you can customize the privilieges needed to display some menu items :
    Tools menu : The items are fully customizable. You can define the privilieges needed to display them.
    Process Model : The "Enabled expressions" of the configuration and execution entry points are customizable. (->Sequence properties, "Model" tab)
    3/ Finally you can customize the operator interface to choose the menu items to display. (Look at "TestStand Reference Manual", chapter 9)
    But before you try to customize TestStand, try to explain your needs : The Operator Interface already  updates the menu items depending on the user profile.
    And an operator user has already limited menu options.
    If you need to define  more limited options, the easiest way is to customize the user privilieges of the "operator" profile.
    Bruno

  • How can i remove the menu bar from my second display

    I am using a Mac Mini for our auditorium projection computer and since upgrading to OS X Mavericks, the menu bar is now on all displays. I needto remove it from the projector display so it doesn't show on the projector screen. Is there an option for this?

    https://discussions.apple.com/message/23496295

  • Remove a menu + Stop a viewer from saving

    HI there I have 2 problems;
    1- As attached in the code, I have a link that once clicked a
    newhtml page will be opened it contain a html file of a captivate
    project it has control buttons, when I right click the control
    buttons a small menue appear that contains
    -settings
    -About Adobe Flash Player 10
    How Can I remove this menue completely?
    2- Also how can I make the user unable to save the content of
    the new window that has the captivate project, I was thinking of
    making the 'save as' and the 'send link' in the file menu of the
    broswer dim but I do not know how ? any idea about that? or how to
    ban the user from saving the window at all ?
    THanks appreciate a fast help.

    Hello
    1./Here is the Viewer button
    and here is the temp file
    the view button create a temp report every time I use it.
    The test results is a text file will be pull Up to data base
    the file name is making a remote pulling data process confused.
    -I just want to known if there is a way for not create the temp file in the test data folder
    or at least create the temp file in a designated folder rather than the test result folder.
    Thanks
    TP

  • How can i remove history from the menu bar?

    I don't want the option "history" showing on the menu bar, how can i remove it?

    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #history-menu { display:none!important; }
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    How can I remove the "Notifications" icon from the Menu Bar in OS 10.9?

    As far as I can tell, this is your best option: http://reviews.cnet.com/8301-13727_7-57608829-263/how-to-turn-off-notification-c enter-in-os-x-mavericks/

  • How can I remove dropdown calendar menu from date/time field.

    I set up a javascript calculation based on the input of a date field. As long as the user enters the date manually the script works fine. If user attempts to select date by drop down menu then script will not work. How can I remove the calendar feature from the Date field?

    You may have to wire custom script to get you what you need. That would probably work on 'exit' event.
    Just you give you better Idea here is some thing I have on a date field. If user types his own date instead of picking from calendar this code checks whether it is valid date or not and returns to the same field either they enter valid date or clear the field.
    This is FormCalc script. You may get the idea how this works and make it work for you using the same logic either in FormCalc or JavaScript.
    ----- form1.SOF.Head.Table1.Row1.ReqDate.Date_ReqDate::exit: - (FormCalc, client) ------------------
    if (HasValue($)) then
    if (Len($.rawValue) == 10) then
    var S1
    var MM
    var DD
    var YYYY
    var Derror
    var D1
    var D2
    var S2
    Derror = 0
    D1 = 0
    D2 = 0
    S1 = $.rawValue
    D1 = At(S1, "-")
    S2 = Right(S1, 5)
    D2 = At(S2, "-")
    if (D1 > 0 and D2 > 0) then
    if (D1 == 3 and D2 == 1) then
    MM = Substr(S1, 1, 2)
    DD = Substr(S1, 4, 2)
    YYYY = Substr(S1, 7, 4)
    elseif (D1 == 5 and D2 == 3) then
    MM = Substr(S1, 6, 2)
    DD = Substr(S1, 9, 2)
    YYYY = Substr(S1, 1, 4)
    else
    Derror = Derror + 1
    endif
    else
    Derror = Derror + 1
    endif
    if (Oneof(MM, "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12")) then
    Derror = Derror
    else
    Derror = Derror +1
    endif
    //xfa.host.messageBox("MM"+ Derror, "Incorrect Date", 1, 0)
    if ((Oneof(DD, "01", "02", "03", "04", "05", "06", "07", "08", "09")) or ((DD >=10) and (DD <= 31))) then
    Derror = Derror
    else
    Derror = Derror + 1
    endif
    //xfa.host.messageBox("DD"+ Derror, "Incorrect Date", 1, 0)
    if ((YYYY >= 1975) and (YYYY <= 2050)) then
    Derror = Derror
    else
    Derror = Derror + 1
    endif
    //xfa.host.messageBox("YYYY"+ Derror, "Incorrect Date", 1, 0)
    if (Derror > 0) then
    xfa.host.messageBox("Preferred valied date between Jan 01, 1975 and Dec 31, 2050. ", "Incorrect Date", 1, 0)
    xfa.host.setFocus($.somExpression)
    else
    //good
    $.formattedValue = Format("MMM DD, YYYY", Concat(YYYY, MM, DD))
    if ($event.shift) then
    //xfa.host.messageBox("Shift")
    var sh
    sh = 1
    //xfa.host.setFocus("xfa.form.form1.SOF.Head.RadioAttachTo.RadioAttachTo3")
    else
    if (xfa.event.commitKey == 1) then
    var A
    A = 1
    else
    xfa.host.setFocus("xfa.form.form1.SOF.Head.Table1.Row2.CustName")
    endif
    endif
    endif
    else
    xfa.host.messageBox("Preferred valied date in format MMM DD, YYYY.", "Incorrect Format", 1, 0)
    xfa.host.setFocus($.somExpression)
    endif
    endif
    Good luck,
    SekharN

  • How can I remove "Hello World!" from my browser menu bar

    I just noticed there'e something in my brower menu bar that has never been there before. Next to the other menu options (File, Edit, View, History, etc.) appears the words"Hello World!". I know it wasn't there two weeks ago, and it's highly unlikely I would have missed seeing it a few days ago when I last did extensive browsing. In hopes of fixing the problem myself, I deleted the only two FF add-ons installed to my PC in the past month. I also ran a system restore to a point created 35 days ago. But "Hello World!" still remained in the menu bar. When I try clicking it on, nothing happens. I tried removing it by pressing the "Customize"option in the toolbar, but it "Hello World!" would not drag down from the menu bar. I was still running FF version 22.0., and when I saw that an update to FF 23.0 was available, I ran the update, but this did nothing the fix my issue (I'm currently back to FF22.0, due to the System Restore that I ran earlier). Finally, I went to both my "Program Files" folders, and sorted them using "Date Modified", to identify any programs changed or added in the past several weeks. There were only a few programs changed in this timespan, so I scoured all files within those few folders, but nothing stood out as unusual. CAn anyone tell me what this "Hello World!" is or why it is appearing in my menu bar? Most importantly, would anyone know how I can remove it permanently ? Following Firefox's instructions, I've created a Print Screen photo showing my brower toolbars, including the menu bar ( at the very top just above my address bar), so that you can see where "Hello World!" appears. Not sure yet how to attach the PrtScn photo to this question I'm about to submit, so if it doesn't make it to the forum with my question, I can send it to anyone who emails me a reply.
    Thank You.

    THis is a reply to my own question, so that I can upload the Print Screen image of my browser toolbar. Look for "Hello World!" at the top, just above my address bar. Thanks again to anyone who can help me remove this from my menu bar.

  • HT2476 FAVORITES menu ... How do I remove/delete from the menu?

    I accidentally dragged a folder into my FAVORITES menu ... How do I remove/delete from the menu?

    Do you mean in Finder?
    Right-click (CTRL-click) > Remove from Sidebar
    -or-
    Hold down COMMAND and drag it out of the window

  • How do I remove the Adobe updater from the Mac menu bar?

    I would like to remove the Adobe Updater from my menu bar for my Mac, I found a lot of instruction to remove it for other versions of the updater, but the I can't find that option in the new CS6 updater.
    If there is a way to completely stop the updater from running, that would be useful too.
    I also don't understand why the updater say "4" in the menu bar, I only have Photoshop installed, and there are no update avaiable.

    I am one of the many for whom Application Manager just started to crash every time I tried to open it. I was also getting the 'trial' dialog box, then a request for a serial number, even though I subscribe to Creative Cloud.
    After hours with Adobe Tech Support, I have gone the around-your-elbow-to-get-to-your-mouth method of creating a second user and installing CC apps there...hopefully this is temporary situation, but a girl has to work.
    My question is this: how do I remove the updater notifications from the menu bar [original user] if I can't open Application Manager? It crashes every time...besides, Tech Support had me send it to the trash and delete it. I went to my other user ID, updated all, but I'm still showing the annoying update badge in my original menu bar. [Altho' Camera Raw failed to update...that's another issue]
    Please advise. I had CS5.5 Design Premium...maybe it would be easier just to upgrade that to CS6 and ditch Creative Cloud!
    Thanks in advance.

Maybe you are looking for

  • How do I move my old iPhoto library from my external hard drive to my new Mac?

    Hi guys! I recently bought a new MacBook Air as my MacBook Pro was on its last legs... I have my backup for my old MacBook Pro on an external hard drive and I'm trying to put a selection of albums from my old iPhoto onto my new MacBook Air iPhoto. I

  • HELP 175 gb of other on hard drive

    Hi I seem to have 175 gb unaccounted for i cant find anything that could take up that much space i am running an intel mac on lion i keep all my photos and itunes on seperate drives so the mac does the grunt work the only thing on the mac is video fo

  • Humongous iMovie file to iDVD

    I have a 23.56 GB movie (onlt 24 minutes worth). I know iDVD just uses the iMovie file and adds the themes, etc. What do I have to do to get the project down to a manageable size? What happens if I share the movie over to iDVD? Am I going to have to

  • 8800 general error whilst trying to use the straighten tool following "Classroom in a Book" lesson

    So in lesson 2 of Classroom in a Book we learn to straighten a scanned image, except having followed the instructions precisely I got the following message. Hope someone can help please? Thanks PS, Brand new, out of the box CS5 - <no additional infor

  • Exchange 2013 - 2007 coexistence legacy namespace issues

    Got an odd config here. Exchange 2007 CCR mode co-existing with split role 2013 servers over 2 Data Centers. Each DC has its own subnet so DAG has 2 IPs. New Certificate purchased with extra legacy namespace and loaded onto ISA and F5 as well as the