Importing CS4 Keyboard Shortcuts to CS5

I've  discovered that you can open your custom keyboard shortcuts xml file in a  text editor, and copy/paste shortcuts into your CS5 keyboard shortcuts  file. Anyone else tried this? Is there an easier way to import all of  your keyboard shortcuts from CS4 to CS5?

I did some experimentation, and I stand corrected! Apparently my memory was dodgy. In particular:
My experience is that it basically works fine, though it's been a while.
I thought we had tested this from CS3 to CS5, but it looks like maybe we only did it from CS5 to CS5.5. Which are a lot more similar.
(And yes, I did recall people having complaints about it, but my experience disagreed...)
Indeed, you have some problems with CS4 to CS5, but they are not subtle. At least, initially, I was getting a dialog box informing me that there were defined shortcuts in the shortcut set that were invalid (Somewhere along the way that stopped happening, which is Interesting, but probably not relevant).
Anyhow, I certainly don't disagree that pasting the XML differences is the better way to go -- I said as much in post #13.
But by way of recompense, here are a pair of scripts to make it easier.
Both require you to create a special shortcut set called "defaults" (i.e. defaults.indk) that they use as a baseline for differences. For a variety of reasons, it is insufficient for the script to use the Default.indk file in the application directory. Both scripts pop up an error if you have not done this, and tell you how to do it.
The first one, extractShortcuts.jsx, prompts you to select a shortcut file to extract from, compares it against the default shortcut set, and outputs and differences to a file on the Desktop, extracted.xml. Run this in CS4.
The second one, importShortcuts.jsx, prompts you to select the extracted.xml file from previous, asks you for the name of the new shortcut set, and then merges the two. It merges them in a fairly stupid way (just plain appending just before the end), but it's probably sufficient.
So here we go, exportShortcuts.jsx:
#target InDesign
(function() {
     var appdir = app.filePath,
          prefs, shortcuts,
          i, s,
          defaults, readcuts,
          defxml, readxml,
          e, ea, action, context, string,
          defaultsByAction, d;
     var includes = $.includePath.split(";");
     for (i=0; i<includes.length; i++) {
          s = includes[i];
          if (s.match("Preferences") && s.match(/Scripts$/)) {
               prefs = new File(s).parent;
               break;
     if (!prefs) {
          alert("Could not find User Preferences directory");
          exit(1);
     // $.writeln(prefs.fsName);
     shortcuts = prefs.getFiles("InDesign Shortcut Sets")[0];
     defaults = shortcuts.getFiles("defaults.indk")[0];
     if (!defaults) {
          alert(
     'The script requires a special shortcut set called "defaults" to exist.\n'+
     'The app-folder Defaults.indk is NOT sufficient. Please go to '+
     'Edit > Keyboard Shortcuts, and select the the [Default] shortcut set,'+
     '  modify it in a trivial way (for instance, assign F1 to About InDesign),'+
     ' name the new set "defaults", remove the modification, and save the set.'+
     ' Then re-run this script.');
          exit(1);
     readcuts = shortcuts.openDlg("Select an INDK file to extract shortcuts from.","*.indk");
     writecuts = new File(Folder.desktop.fullName+"/extracted.xml");
     defaults.open("r");
     defxml = new XML(defaults.read());
     defaults.close();
     readcuts.open("r");
     readxml = new XML(readcuts.read());
     readcuts.close();
     writecuts.open("w");
     writecuts.writeln("<shortcut-sets>"); // hack
     defaultsByAction = {};
     for (i=0; i<defxml.shortcut.length(); i++) {
          e = defxml.shortcut[i];
          ea = e.elements()[0];
          if (ea.name() != "action-id") {
               alert("Parse failure on element "+ea);
               exit(1);
          action = ea.attributes();
          context = e.context[0];
          string = e.string[0];
          defaultsByAction[action] = { context: context, string: string };
     for (i=0; i<readxml.shortcut.length(); i++) {
          e = readxml.shortcut[i];
          ea = e.elements()[0];
          if (ea.name() != "action-id") {
               alert("Parse failure on element "+ea);
               exit(1);
          action = ea.attributes();
          context = e.context[0];
          string = e.string[0];
          d = defaultsByAction[action];
          if (!d ||
               d.context != context ||
               d.string != string) {
               writecuts.writeln(e);
     writecuts.writeln("</shortcut-sets>"); // matching hack
     writecuts.close();
And its mating half, importShortcuts.jsx:
#target InDesign
(function() {
    var appdir = app.filePath,
        prefs, shortcuts,
        i, s,
        defaults, readcuts,
        writename, writecuts,
        defxml, readxml,
        e, ea, action, context, string,
        defaultsByAction, d;
    var includes = $.includePath.split(";");
    for (i=0; i<includes.length; i++) {
        s = includes[i];
        if (s.match("Preferences") && s.match(/Scripts$/)) {
            prefs = new File(s).parent;
            break;
    if (!prefs) {
        alert("Could not find User Preferences directory");
        exit(1);
    // $.writeln(prefs.fsName);
    shortcuts = prefs.getFiles("InDesign Shortcut Sets")[0];
    defaults = shortcuts.getFiles("defaults.indk")[0];
    if (!defaults) {
        alert(
    'The script requires a special shortcut set called "defaults" to exist.\n'+
    'The app-folder Defaults.indk is NOT sufficient. Please go to '+
    'Edit > Keyboard Shortcuts, and select the the [Default] shortcut set,'+
    '  modify it in a trivial way (for instance, assign F1 to About InDesign),'+
    ' name the new set "defaults", remove the modification, and save the set.'+
    ' Then re-run this script.');
        return 1;
    readcuts = Folder.desktop.openDlg("Select an XML file to import shortcuts from","*.xml");
    writename  = prompt("Choose a name for the new shortcut set. One word, no spaces, please.",
    "new");
    writecuts = new File(shortcuts+"/"+writename+".indk");
    defaults.open("r");
    defxml = new XML(defaults.read());
    defaults.close();
    readcuts.open("r");
    readxml = new XML(readcuts.read());
    readcuts.close();
    defxml.appendChild(readxml.elements());
    writecuts.open("w");
    writecuts.write(defxml);
    writecuts.close();
These are written on a Mac. I suppose there's they might not work perfectly under Windows if the logic to find the user's keyboard shortcuts directory doesn't work.
As always, install scripts by saving each script as a plain text file (in TextEdit or Notepad) and following directions at, e.g., How to Install InDesign Scripts.
Good night.

Similar Messages

  • Importing / Transferring Keyboard Shortcuts into Photoshop CS5

    Hello, i am testing out Photoshop 5 and it looks good so far, yet some obstacles are left to solve. For example i wonder how to get the keyboard shortcuts from my old Photoshop (the .kys file) into the PS5? There is no import. I would even manually transfer, but opening the file in a texteditor just shows weird stuff (there was a guy who manually transfered his indesign shortcuts in such a way, but since he used a normal text editor i guess these files are of a different structure)
    http://forums.adobe.com/message/2881861#2881861
    if anyone knows how to transfer them or has an idea how to manually workaround, i am happy for hints.
    thanks
    Sofian

    It depends on which windows system you have, but for vista and windows 7, probably the best
    place to put the kys file is:
    C:\Users\Your Name\AppData\Roaming\Adobe\Adobe Photoshop CS5\Presets\Keyboard Shortcuts
    Added:
    Windows XP:
    C:\Documents and Settings\Your Name\Application Data\Adobe\Adobe Photoshop CS5\Presets\Keyboard Shortcuts
    MTSTUNER
    Message was edited by: MTSTUNER

  • CS4 Keyboard shortcuts for Tiling?

    I've just upgraded from Photoshop CS3 to CS4, and it looks like some of the keyboard shortcuts have changed or gone away entirely.
    In CS3, if I had multiple images open, I used Alt-w,a,h to tile horizontally, and Alt-w,a,v to tile vertically. Depending on the images I'm working with, I use this feature a LOT.
    CS4 only appears to have a single tiling option. What happened? Is there any way I can tell CS4 how I want the images tiled on the fly?
    Annoying.
    Thanks,
    -Dan

    Ah ha!  Thank you.  It does it (blending change) with the pen tool group, the path and direct selection tools, and the line and shape tools selected.  But not the eyedropper family.  How strange.  Inadequate beta testing?  One less annoyance in my work flow.  Thanks.  CB

  • How can I import my keyboard shortcuts from my iPhone to my new MACBOOK pro?

    Now I'm guessing that 99% of you don't use this feature on iPhone or Macbook so I'm curous to know who knows the answer
    I recruit a lot and have canned texts and emails (which means I usually say the same thing)
    in my iPhone I set it up (by going to General, Keyboard, Shortcuts) to have when I type in a certain phrase, it types on something else. FOR EXAMPLE
    "randq" would automatically turn into "Random Question, do you know anyone open to making more money?"
    I have around 40 of these shortcuts and want to save myself the time manually entering them one by one into my macbook.
    I know where these settings ARE but I'm wondering if there's a shorter way to do this?
    (Settings are under Language and Text, TEXT"
    If you are able to help, that would be awesome!

    You may do better asking in the iPhone forms here:
    https://discussions.apple.com/community/iphone/using_iphone 
    and/or the Mtn Lion OS forum here:
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion

  • Ctrl+M Curves Keyboard Shortcut Photoshop CS5 not working

    For some reason, the keyboard shortcut for Curves (ctl+M) is no longer working.  It worked fine for a while and then just stopped.  All other shortcuts are working.  When I go into Preferences, I cannot assign a different shortcut.  So, it seems that there is a problem with assigning ANY keyboard shortcut to Curves rather than some issue with just the Ctrl+M keystrokes.  I still can access curves from the menu, but I use curves very often and it is a real inconvenience.
    Has anybody else encountered this problem?  What is the cause and/or how can it be rectified?

    This may help very little, but it's a data point:  I can do Ctrl M no problem, it brings the Curves dialog right up.  That says it's not a systemic problem with 12.0.3.
    Do you have the latest Photoshop update?
    What operating system are you running?
    Do you have an image layer active when you're trying this?  I assume so, since you said you could do Curves from the menu, but I thought I'd ask.
    Have you installed any 3rd party plug-ins between the time it worked and didn't?
    -Noel

  • InDesign CS4 Keyboard Shortcuts not working

    I ran the 6.0.1 updater and now my Keyboard shortcuts don't work. The only one that does is Command Q and the spacebar.
    When I got to Edit> Keyboard Shortcuts, none of the buttons do anything (New or Show Set)
    Any ideas?

    Restore your InDesign preferences. Quit InDesign. Launch InDesign and IMMEDIATELY hold down Ctrl+Cmd+Opt+Shift. When prompted, choose to restore preferences.

  • CS4 Keyboard Shortcuts - German

    Would some kind sole lead me in the direction where I can download a list of shortcuts applicable to a German keyboard? Whilst I'm using an English language version of CS4 (in fact my OS (XP Pro) and all applications are also in English) I'm stuck with a German keyboard out of necessity.

    Maybe I should start over and explain it a different way.
    I do not apply anything via the OS.  I do not change my layout or use a different keyboard driver.
    I just press the key or keys on my unchanged keyboard that work.
    By experimenting I have discovered that it is the position of the keys that counts and not what is printed on the keys.
    When English Photoshop says to hit the left bracket  ([) key, it really wants you to hit the second key from the right (not counting the return key) in the second row from the top.
    When English Photoshop says to hit the forward slash (/) key ("preserve transparency" command), it really wants you to hit the first key on the right in the bottom row (just to the left of the shift key).
    On my system (Engl PS CS4) this is the consistent behavior that I have observed (in conjunction with a German keyboard).
    To find the key it wants me to use, I look at the picture of the US keyboard layout.  I don't have to do that.  I could blindly try out all key combinations until I happen to come across the right one.  But since Engl Photoshop calls the keys by their English keyboard layout names instead of saying "second key from the right, second row from the top", it makes sense to take advantage of that.

  • Premiere CS4 keyboard shortcuts

    Hi,
    I decided to have another go at getting CS4 Production Premium to work. (To cut a long story short, I was on CS3, everything worked fine, upgraded to CS4 and I couldn't get Premiere to output or render anything, went back to CS3!!).
    I've now loaded Windows 7 professional 64bit. (applied all updates)
    Loaded all of CS4 production premium and applied all the updates I could find (750Mb worth!!)
    So now I try Premiere (V4.2) and I have no shortcut keys!!
    Ctrl S does not save, Ctrl V does not paste etc. etc. Absolutely no shortcut keys whatsoever.
    Anyone any ideas? Is my installation flawed? I'm I missing something obvious?
    Never come across a programme with no shortcut keys before. This surely is not correct.
    Thanks in advance

    OK, for what its worth I have solved this issue myself!
    I reinstalled Premiere and added all available updates and the shortcut keys have now returned. I can only assume there was some glitch with my first install. Anyway as I purchased my CS4 upgrade last March, its only taken 8 months to get CS4 to operate as it should have done!! This is not good in my opinion and I will be VERY warry of any future updates by Adobe.
    I will be keeping a careful eye on this forum in future.
    I would say I highly recommed upgrading to Windows 7 professional (64 bit), especially if you are on Vista (as I was). I'm so far very impressed with this OS (even before a service pack has been released).
    For now I am a happy chap!!

  • Keyboard shortcut for "Help" search menu (CS6)

    Hello,
    In CS5 I managed to remove all shortcuts overriding the CMD + Shift + 7, thus being able to use that standar shortcut for executing a menu search on Mac OSX.
    Since switching to CS6 (and importing my keyboard shortcuts from CS5), CMD + Shift + 7 doens't work anymore when I'm working in an artboard.
    _However_, if I have a modal view (e.g. "Preferences > General") open, the shortcut works as intended...
    Any leads, anyone?

    Hi Michael,
    Command . will close the spotlight window but keep the search in there.
    It will be there next time you hit Command spacebar
    Hitting the Escape keep will be the same as hitting the x
    Lori

  • CS4 Load Luminance Mask, keyboard shortcut

    I recently installed CS4.
    Is there a new keyboard shortcut to load the Luminance mask?
    Command+Opt+Shift+Tilde works fine with CS3 installed on this computer.
    Here is what works for CS3
    Command+Opt+Shift+Tilde
    Mac System Preference>Keyboard & Mouse> (Uncheck) Move focus to the window drawer
    I have read these earlier posts but did not find any posts for CS4.
    http://www.adobeforums.com/webx/.3bbaa366
    http://www.adobeforums.com/webx?128@@.59b68f9e
    Am I doing something wrong or has the CS4 keyboard shortcut changed?
    Thank you in advance.
    Kathryn
    Mac OS - 10.4.11
    Photoshop CS4 Extended

    Thank you Ann for the quick reply.
    Yep, that worked.
    I am still finding my way around with all the changes and new features.
    Kathryn

  • Keyboard shortcuts import

    Just downloaded Premiere CC 2014 and wonder how I can import my keyboard shortcut preferences.  Was surprised that wasn't automatically done, since I'm using the same account.
    --jon--

    This forum a few days ago has a workaround:Re: Adobe Premiere Pro Help | Keyboard shortcuts in Premiere Pro CC
    So, in CC, save your keyboard layout in the Keyboard Shortcuts window as a new Keyboard Layout Preset, calling it something specific.  Then go to:
    Users>[User Name]>Documents>Adobe>Premiere Pro>7.0>Profile-CreativeCloud->Mac> and you will find the .sys file you just created.
    Copy and paste it into the 8.0 folder:
    Users>[User Name]>Documents>Adobe>Premiere Pro>8.0>Profile-CreativeCloud->Mac>
    In CC 2014, open up Keyboard Shortcuts and you should now have the preset from CC as one of the choices in the pull-down.  Obviously, this is not the user experience one would expect with the Adobe's cloud synching capability, but hopefully it's just a Mac-side bug that will be resolved soon.
    --jon--

  • Photoshop CS6 keyboard shortcuts in PSE 12

    Has the structure of the .kys file changed in CS6?  I used to be able to use the keyboard shortcuts from CS5 with my wife's laptop.  We recently went to CS6 on my desktop and PSE 12 on her laptop, and now the keyboard shortcuts that I try to copy from CS6 to PSE not only don't work, but are deleted by PSE as it exits.  I've put an old keyboard shortcuts.psp file that I had from CS5, and it works fine and doesn't get deleted.
    If my conclusion that the shortcuts are different and incompatible is correct, is there any workaround?
    I'm using Windows 7.  Thanks!

    It looks like the shortcuts from cs6 won't work in pse 12 and they don't work in photoshop cs5 either, so adobe must have changed something.
    Anyway, it's probably best to use the keyboard shortcuts from photoshop cs5, since pse 12 is mostly based on the photoshop cs5 code.
    This the message one gets in photoshop cs5 when trying to load a keyboard shortcuts file saved out of photoshop cs6.

  • Import or Move Keyboard Shortcuts Etc. to CS4?

    Is there a way to import or move my keyboard shortcuts from CS3 to CS4? What about layout settings etc.?
    Thanks

    I have migrated my keyboard settings from PPro2 to CS4 and CS5.
    From PPro 2 (XP) to CS4/5 (Win 7 64)
    copy file:
    C:\Documents and Settings\*yourusername*\Application Data\Adobe\Premiere Pro\2.0\*yourprefs.kys*
    to:
    C:\Users\*yourusername*\AppData\Roaming\Adobe\Premiere Pro\4.0\*yourprefs.kys*
    or
    C:\Users\*yourusername*\AppData\Roaming\Adobe\Premiere Pro\5.0\*yourprefs.kys*
    Run Premiere, select: Edit/Keyboard Customization/ and your key settings
    should appear in the Set: dropdown menu.
    I have not found a way to migrate layout settings.

  • Importing keyboard shortcuts from PS CS3 into CS4?

    Is it possible to import keyboard shortcuts from PS CS3 into CS4?
    And how?
    m

    Mmh, you could possibly simply copy over the respective files from your preset directory (Documents and Settings/Matjaz/Application Data/Adobe/Photoshop CS3/Presets/Keyboard Shortcuts). Not sure if it's safe, though. Never tried.
    Mylenium

  • Keyboard shortcuts CS5 differ from CS4.

    Hello all,
    Im used to work on a mac, but in my new job i have to use both the PC and MAC. Now im used to CS4 and i just migrated to CS5. Now most shortcuts im used to dont work, wich is a real pain. I completely rely on them for i sometimes dont even know where to find them in the menus.
    Any advice?
    Thanks

    I have begun working in a school, helping students with shop illu and indy. They gave me a Dell, it will have to do. The students work on dell pc's or brand new macs, or on there own laptops. Most problems are solved, so i will remap the functions that need fixing. I would like to reply in the thread but im at home now and although im signed in, i cant respond, can only report abuse. I shall wander over to the photoshop section and ask there about my other questions.
    Thanks again all, for the quick response.
    Date: Thu, 27 Jan 2011 16:43:28 -0700
    From: [email protected]
    To: [email protected]
    Subject: Keyboard shortcuts CS5 differ from CS4.
    What brand of Laptop?
    This certainly does sound like the mapping problem I mentioned. You can fix all the shorcuts that use the enter key by making a new set and adding the numpad enter as a second option, but that isn't going to help with other shortcuts that use numpad keys (though the only ones that likely would affect are style shortcuts, for which the numlock must be on -- others you can use the regular keys for those functions and just change the habits you may have developed about the numpad keys).
    I'm not sure what's going on in Photoshop. You should probably ask over there if anyone knows of similar issues related to keyboard mappings. And just maybe you should try a different brand of laptop...
    >

Maybe you are looking for