Restore the default menu

Hi all,
I remove the save and save as menu item (PC) from file menu using
app.menus[0].menuElements[0].menuItems[3].remove();
app.menus[0].menuElements[0].menuItems[4].remove();
Now i can't restore it back. help me plz.
Thanks
Senthil.C

Hi!
The fastest way: start indesign pressing down ctrl+alt+shift. But this way all your presets and other customizations are going to be deleted too.
The other way: use menuItems.add(associatedMenuAction, at, reference) on app.menus.item('Main').submenus.item('File')
associated menuaction is app.menuActions.item('Save') (or Save As...)
at should be LocationOptions.AFTER
and for reference: app.menus.item('Main').submenus.item('File').menuItems.item('Close')
In case of CS3; I don't know about the scripting of other versions.
Balázs

Similar Messages

  • How to Reset the Default Menu Positions in DreamWeaver CS4 ?

    Can anyone tell me how to reset or restore the Default Menu Positions in DreamWeaver CS4 ?
    Thanks for any help!
    Joe

    Well.. I sure appreciate the help... but, unfortunately that did not restore the initial settings..
    Any other ideas?

  • ■To restore the default ruler origin in JavaScript?

    Is it possible to restore the default ruler origin by JS? In the UI I just double-click the upper-left corner where the rulers intersect.
    Thanks
    franK

    There is a command to change to the Global rulers. After this change, your script still works, but I see this command only in the UI and not in JavaScript documentation. What is worse, I cannot add this command to the Action script either.
    franK

  • How to restore the default view setting for FINDER?

    I played with my finder's view setting and I set it default to all..
    Now I want to restore the default view setting, how is that possible?
    Thanks!

    Go to your home folder -> Library -> Preferences. Locate the file com.apple.Finder.plist and trash it. Then control-option-click Finder's Dock icon and select Relaunch. All Finder settings will now be back to the OS X defaults.

  • [svn] 3075: Restoring the default HTTPService resultFormat to "object" to fix QE tests for HTTPService.

    Revision: 3075
    Author: [email protected]
    Date: 2008-09-03 09:07:35 -0700 (Wed, 03 Sep 2008)
    Log Message:
    Restoring the default HTTPService resultFormat to "object" to fix QE tests for HTTPService.
    QA: Yes, this address .
    Doc: No
    Checkintests: Pass
    Bugs:
    SDK-16706 - httpservice fails to fetch data
    SDK-16696 - accessing parameters via httpservice's result gives runtime exception.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16706
    http://bugs.adobe.com/jira/browse/SDK-16696
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/rpc/http/AbstractOperation.as

  • Why did iphone 4s only restore the default setting

    I had a problem with my iphone 4s restoration. I tried to unlock my phone becaue I have been with my contract for over one year. Following the instruction received from Apple, I first backed up my iPhone 4s to iTune and then erased all content and setting by going to Setting ->General -> reset > Erase All Content and Setting. When it completed, I got a message my phone has been unlocked and ask them if I want to restore my backup. But after the restoration completed, I found it only restored the default setting and content. All the apps I downloaded were not there. Can anyone tell me why this happened and how can I get all my apps back?  

    "But is this a potential problem? "
    Probably not.

  • What DOES the default menu do?

    Hi,
    Scenario: sqlplus on scott/tiger schema and a 9i form running and linked
    to the EMP table.
    User on the form queries Blake's record and changes their salary by one unit
    (forms locks the record as the change takes place).
    Nip across to SQLplus and type in an UPDATE statement to set Blake's
    salary to zero (hangs on the lock).
    Back into the form: decide to ditch the change of Blake's salary by choosing
    Block->Clear from the menu (screen gets wiped).
    Back to sqlplus: no update on the sqlplus window (still hanging I guess on
    the lock).
    Back to the form - choose Action->Clear All and this allows sqlplus to
    work again.
    Question1: what does "Action->Clear All" do (if it just invokes a built-in where
    can I read words like "this calls clear_form(NO_COMMIT)" ?)
    Question2: why didn't Block->Clear discard the lock?
    I kindof think that there's something obvious I am missing, but am willing to
    sacrifice my pride for a good answer.
    Thanks in advance
    Mungo Henning :-)

    Hi Kranthi,
    Thanks for the reply.
    Hello
    The Clear All item in the default menu is
    functionally equivalent to executing the CLEAR_FORM
    M procedure with default parameters:
    CLEAR_FORM(ask_commit, to_savepoint);
    The block clear menu option removes all records from,
    or flushes the current block.You haven't said whether the block clear menu option calls "CLEAR_BLOCK".
    So what does it do with uncommitted changes - ask or ignore?
    >
    Refer to the online help for more details That's the overwhelming issue: I have gone to the on-line manual but I find
    it infuriating when it lacks vital details. I will happily stand corrected if someone
    can list some keywords or a web URL for the exact page I ought to be reading
    So I politely request that you indulge me: where in the manual does it discuss
    the functionality of the default menu in exact terms?
    Thanks again
    Mungo

  • Restoring the default settings for Audition CS6

    Fortunately you don't have to uninstall and reinstall Audition to do this - although that's certainly an option. Bear in mind that doing this will only work if you choose to delete your preferences as part of the process.
    There are several other options though, and I suggest reading through all of them before deciding which to use. We'll start, though, with the other simple one. If you start Audition with the 'shift' key held down, this will achieve the same result - the preference files won't be read, and the default (aka 'vanilla') ones will be reinstated. Certainly with a Mac (and probably a PC as well) you have to hold the 'shift' key down at least until the splash screen appears, otherwise it might not work.
    From here on, it gets a little more complicated, but you get more options. The reason for this is that in order to get at the individual preference files, we have to consider three different operating systems, XP, Windows 7, and OS X. By default, in all of them, the location of these files is hidden, and you have to reveal it. When you have done this, the path and files will be revealed.
    Revealing hidden folders:
    XP: In a folder, go to Tools>Folder Options>View and scroll down to the hidden folders entry. Select the 'Show' option. The path to the Preferences folder is C:\Documents and Settings\[user_name]\Application Data\Adobe\Audition\5.0
    Windows 7: In a folder, go to Organise>Folders and Search Options>View, and then it's the same as XP. The path to the Preferences folder is c:\Users\[username]\AppData\Roaming\Adobe\Audition\5.0
    Mac OX: The Preferences are in a library folder, and are apparently stored twice. The locations of them are:
    /Users/[User_Name]/Library/Preferences/Adobe/Audition/5.0/
    /Users/[User_Name]/Library/Preferences/com.Adobe.Audition.5.0.plist
    There is a note about this at the end of this FAQ*.
    Anyway, there are, apparently, several ways to unhide them:
    1. The easiest way to get there without opening Terminal is to open Finder or click on your desktop, click Go in the menu bar, then hold down the OPTION/ALT key.  You should see Library appear in the menu as long as your holding that key and clicking the menu item will bring it up in Finder.
    2. Use Command+Shift+G from the Mac desktop (or Finder>Go>Go to Folder) and type in ~/Library to temporarily access the Library directory. When you have finished manipulating the relevant parts of it, close this window and the folder will no longer be visible.
    3. To make the Library folder visible permanently (like in OS 10.6 and earlier), open the Terminal application and use the following command: chflags nohidden ~/Library/
    What do you have to do when you've revealed the folder?
    The basic idea is that if Audition opens, and it doesn't find a particular file in the preferences folder, it recreates it. So, you can either delete all the files in it (the same as Shift+open), or you can be more selective. Primarily there are three .xml files that you are interested in, and if you are only having a problem with one of them, then that's the only one you need to delete.
    Application Settings - deleting this will restore most of the settings in the program itself back to defaults
    Effect Presets - deleting this will restore default settings, but if you have made any of your own presets, you will lose these too.
    Favorites - the same as Effect Presets, only for the Favorites list.
    There is also an .xml file for Machine-specific settings, but this only affects your sound device, and generally would be rewritten anyway if anything changed, so generally doesn't need to be touched. Mainly it's the three I mention above that are the ones you will be interested in.
    * A note from Durin about the Mac preferences files:
    "The directory path, ~/Library/Preferences/Adobe/Audition/5.0/ is where we store all the preferences, presets, workspaces, log files, etc.  Anything and everything a user may need access to.  The .plist file is more of an application/OS level preferences - similar to an ini or registry entry in that it's less user-facing and more preferences for how the application works with the OS.  In Audition's case, this stores information such as the last directory accessed, File Open/Save dialog dimensions, and other mysterious prefs that are just random GUIDs that Audition and OS X understand. 
    In either case, if the directory or .plist is missing, it will be rebuilt on launch to the first-launch defaults."

    The success of setting the correct cassette will depend on the applications you use. If the apps are set to use any cassette, rather than call a particular cassette, then making cassette 2 the default will succeed. But if the app calls cassette 1, then no amount of driver default settings will help. So in this case, you will have more success if you create another preset for printing to cassette 2, then you can ensure you select this preset when you want to print on plain paper. And of course you can select the envelope preset when you want to do this.
    If you do want to look at modifying the printer defaults, this can be done via the CUPS web page.
    To access CUPS, open Safari and type
    http://127.0.0.1:631/printers
    This will open the CUPS Printer administration page and will show all the printers currently configured on the Mac. For the printer that you wish to change the defaults for, click its name in the Queue Name column.
    Clicking the printer name will open the printer administration page for that printer. Here you need to click on the Administration drop menu and then select Set Default Options.
    This will show a new page with four menu headings (links); Options Installed, General, Banners and Policies. Select General. Scroll down the list until you find an entry like "Paper Source" or something similar that shows the cassettes and select Cassette 2.
    With the option selected you then need to scroll down the list to the bottom of the page where you will see the ‘Set Default Options’ button. Click this button and you will then be presented with an authentication window. Enter the account name and password that has been set as the admin for this Mac. And then press the Log In button. You will then see another page stating that the information change is completed.
    Now you can open an application and select to print and then check the appropriate paper source menu to see if cassette 2 is the default.

  • How to restore the default setting???

    i want to restore the original default setting of firefox ,what is the steps to do that???!!!

    Firefox stores user data in the profile, if you want to start off with similar to a fresh installation you can create a new profile. For details of how to do this see http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows

  • Restoring the default font set

    I recently installed a large collection of fonts and have since noticed an incredible decrease in my system performance. So, I'm wondering if there's an easy way to get back to the default font installation set without having to completely restore my computer? I may or may not have a backup of the system before I installed all of the fonts, I've likely made a new backup since then. I'm using Linotype FontExplorer X to manage fonts and I'm worried that this app also has something to do with the font problems on my system. Could anyone shed light on what exactly FontExplorer does with my fonts that OS X wouldn't do by itself?
    Thanks!

    FontExplorer like most other font managers allow you to collect specific fonts into groups that can be activated or deactivated according to need. This helps reduce the OS load of having to handle all the fonts that are installed in the several fonts folders.
    For more on font management I suggest you visit the User Tips Library and read the tips on font management.

  • How can I restore the default toolbar in Ilustrator CC?

    I can't restore default toolbar to my workspace, I tri to create a new tool but for some reason I can't drag any tool into toolbar. Maybe is something wrong in my software o just me?

    Thanks so much for taking the time to write that out for me Barbara .  The first suggestion didn't seem to do anything at all, but the second suggestion helped a little, and restored some of the original view.  The thing is, I'm pretty sure (but not positive) that the first button I pressed, which was to the bottom right of the main working area, was a screen mode button, judging from the screem mode icon that appears when I use Google images.  It happened quick, so I can't be sure, but it seemed to enlarge the working area and maybe removed buttons or something.  Do you know if there are any screen shots anywhere that I could maybe see what the default is suppose to look like?  Thanks for your help.

  • How do I restore the default icons on my macbook?

    I just recently upgraded to Mavericks and I can't seem to restore any of my application icons to its default icon. I've tried Candybar, restarting my laptop, Get Info>Delete, logging out, and shutting down my laptop.. Help?

    Hi user114700,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    OS X Mavericks: Change the icon of a file or folder
    http://support.apple.com/kb/PH13922?viewlocale=en_US
    Restore the original icon for an item
    Select the file or folder, then choose File > Get Info.
    At the top of the Info window, select the custom icon, then choose Edit > Cut.
    Cheers,
    - Judy

  • I am looking to restore the start menu.

    I got this laptop and there is no way to shut it down. I pull the plug to shut it down but it has a battery and have to wait 3 hours for it to turn off. I have to pull the battery out to shut down a few times now.
    My old laptop had a start menu that I used to shut it down. But now this new one does not have it. How can I restore it?
    Or what do I need to different when I setup the system? Did I miss a step in the step to have the start menu.
    Thanks
    Emma

    If you tap on your Windows key on your keyboard it will launch the charms bar on the right hand side of your screen.
    On that charms bar at the bottom is a cog (marked "Settings"). Click or tap on the cog and then you will see options and one will be to shutdown the computer. It will be labeled "Power". Click or tap on that to see your options to turn off, reboot or restart
    your PC.
    BTW: Google is your friend. A search "How to power off Windows 8" has 100 links on how to do this :)

  • How to restore the default web configuration in Lion

    Hi guys so I was messing around with apache/php/mysql, and after trying to enable openssl I think i made a mistake because when I try to enable web sharing by checking off the checkbox under system preferences it just turns back off right away. If i go to 127.0.0.1 it doesn't work and neither does the localhost. I could try going through the httpd.conf files to fix it if someone could help me with that but I'd rather just try starting over, so i was wondering if there's a command to restore the web configuration back to factory settings. I know there's one for lion server which is $ sudo serveradmin command web:command=restoreFactorySettings Is there anything similar i could do in Mac OS X Lion 10.7.4??
    Thanks

    No I haven't, could you explain how that works?? i can try it, it's something like this right? http://support.apple.com/kb/HT5289

  • TS3274 Why can't i restore the default sounds inmy Ipad? Like, keyboard doesn't make typing sound. Gmems doesn't make their default sound...

    I cant figure out how to get the default sounds to work. From my keyboard to some games installed before iOS 5.1.

    1. Double-click the Home button and swipe Task Bar to the right
    2. Check the volume and mute settings
    http://i1224.photobucket.com/albums/ee374/Diavonex/6d3191ba.jpg

Maybe you are looking for

  • How does Core Audio set sample rate?

    When I play a particular movie in QuickTime, the audio and video are out of sync. The movie plays fine on other computers. This Mac Pro (OS 10.6.8) is used exclusively for Pro Tools and Final Cut Pro. The audio hardware is a Pro Tools HD Native card:

  • Inserting images in table

    I'm working on one file that is very strange. I have a table and I want to place 2 images that are small enough to fit in without any resizing. What's happening is when I centre one, an empty image box, same size, appears on the left. If I want to ad

  • Veritas Netbackup Client Installed on Solaris 10 Zone Unable to Work

    Hi I am having problems with Veritas Netbackup client which had been installed on a Solaris 10 zone only. We are using Veritas Netbackup server which is installed on a Windows 2000 server and the NBU server is unable to add the new client for backup.

  • Beta Refresh Release Now Available!  Sun Cluster 3.2 Beta Program

    The Sun Cluster 3.2 Release team is pleased to announce a Beta Refresh release. This release is based on our latest and greatest build of Sun Cluster 3.2, build 70, which is close to the final Revenue Release build of the product. To apply for the Su

  • If someone turns off iMessage can you get two different Conversations

    I'm having problems with my messaging. I will be texting a person and the next I know is I have two Conversations with the same person and it only happens to one person I text! Don't know if it's his phone or mine? Any suggestions?