Creating a new keyboard shortcut

Hi there,
Can anyone tell me how to create a keyboard shortcut for a function that is not on the shortcut list in CS5? I want to make a keyboard shortcut for adjusting the 'space after' a paragraph.
Thanks very much,

It's a little non-trivial.
First you have to write a script that implements that function. Then you can assign a shortcut in Keyboard Shortcuts by finding your script in the Scripts area.
The good news is that changing the space after for a paragraph is a pretty trivial script.
For instance, this script:
app.selection[0].paragraphs.everyItem().spaceAfter=0.5
sets the Space After of every paragraph of the first selected item to 0.5 in the current vertical units. It's a bit more complicated if you want it to work on every selected item (e.g. you select two independent textframes), but it works fine if you highlight multiple paragraphs in a single frame. It also doesn't do any error checking, so you'll get errors if you run it with, say, a rectangle selected, because rectangles don't usually have a paragraphs.
You could fix these limitations, but it's probably not worth the bother?
What do you do with the script? Save it as spaceAfter.jsx (or whatever) in your favorite text editor and follow the directions at How to Install InDesign Scripts to put it where InDesign can see it.

Similar Messages

  • How do i create a new keyboard shortcut for an action?

    I have created an action to "Save as PostScript." Can I create a keyboard shortcut or am I only allowed to use the "start" button in the action menu? Sure would be great to be able to have a shortcut....

    No, there's not a way to create custom keyboard shortcuts.
    There sort of is if you can do what you need to do via JavaScript by creating a custom menu item and using the key combination to access the menu item, on Windows anyway. For example, in Acrobat 11 you can export to PS on Windows by typing Alt+F+H+M+P (not much of a shortcut), but you could reduce the number of key by setting up a custom menu item, and it could automatically save it in a particular directory with a file name that's determined by the script. So you could avoid the Save As prompt.

  • How can I create a new keyboard shortcut to toggle load images automatically preferrably with one action?

    I switch the load images automatically selection back and forth in order to save on my 5GB monthly data plan. Is there a utility that would allow me to create a macro of multiple keystrokes to do this with one action? Something like the macro function in Excel? Or is there another way to do this more easily than going to tools, options and clicking on the box? I don't see a shortcut for this item in the standard keyboard shortcuts list

    Hi,
    You could try [https://addons.mozilla.org/en-US/firefox/addon/image-block/?src=search Image Block]. Please also go through the reviews, help and ratings. You can also try to search for similar add-ons via Firefox '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''', Search box on the top right corner, or via the official [https://addons.mozilla.org/ AMO].

  • Apple Mail creating a new keyboard shortcut for delete

    In Gmail I can hit the "D" key to delete saves much time. 
    In Apple Mail I have to hit the delete key which is on the right side of the keyboard and my right hand is busy with the track pad scrolling. I want to create a keyboard shortcut for delete something like option D any easy left handed shortcut will work.  Sys pref/keyboard shortcuts/mail doesn't work, Any suggestions?

    Hello!
    I don't know about mouse shortcuts, but you can put a delete button in the top bar of Mail, like so:

  • How to add/create a new keyboard ShortCut?

    There is no shortcut to color code or label an image for purple, if there is one I have not found it.  If you know of one, please send it & presuming there isn't one, what are the steps for creating one or modifying one to apply it as desired?
    Thanks

    Interesting, Adobe failed to include a shortcut for the fifth color label, and the Keyboard Tamer plugin doesn't know about shortcuts for color labels (perhaps because LR doesn't follow its own conventions for label shortcuts). But you can set your own shortcut by editing the file:
    C:\Program Files\Adobe\Adobe Photoshop Lightroom 3.4\Resources\<language>\TranslatedStrings.txt
    and adding the following line:
    "$$$/AgLibrary/Menu/Photo/Label/Toggle5Shortcut=Ctrl+9"
    I don't the precise path of this file on the Mac, but you should be able to figure it out.

  • Create new Keyboard Shortcuts Illustrator CS6

    How can I create a new Keyboard Shortcuts for Illustrator CS6

    Here you can find how to do it:
    http://help.adobe.com/en_US/illustrator/cs/using/WS714a382cdf7d304e7e07d0100196cbc5f-6429a .html

  • New keyboard shortcut didn't work; neither did resetting default

    I wanted to create a new keyboard shortcut for sending mail, so I used the system prefs pane like the help file said (new application shortcut, select mail, etc). After creating my new shortcut (^X), it initially didn't appear in the Message menu for Mail. I quit Mail and restarted, and voila - but hitting ^X didn't send my message. That's annoying.
    So I figured I'd set the shortcut back, and hit the Restore Default button in the keyboard shortcuts preferences. The listing for the shortcut I created disappeared from the menu, but even after quitting Mail several times, and restarting the machine, Menu - Send still lists ^X as its shortcut. Which would be fine with me, but it still doesn't send my message when I hit ^X.
    My shortcut doesn't work, and resetting the defaults doesn't seem to be resetting what Mail thinks the shortcut is. Any thoughts? I'm on OSX 10.4.7, Mail is 2.1.
    PowerBook G4   Mac OS X (10.4.7)  

    lucke wrote:Perhaps you did some bad things to your grub config while playing with the new kernel?
    No, I did the changes temporarily, but none perminant.
    lucke wrote:Tried booting with kernel26-fallback.img?
    Not yet, I think I will do that tomarrow.
    lucke wrote:How did you play with the new kernel? Using ABS or using classic "make menuconfig && make && make install"? How did the recompilation fail?
    I used the wiki to compile it with ABS. It failed because I forgot to set it to be able to read EXT partitions, which it is located on.

  • New Keyboard Shortcuts in Word 2010 NOT SAVING

    I am unable to save new keyboard shortcuts to Word 2010.  The ones that come with the program work like CTRL B for bold, etc., but when I try to create new ones, they'll work while I'm in Word, but when I try to close it for the day, it tells me that
    there is a copy already open and it doesn't allow me to save to the Normal template.  When I try to save to a different template, the keyboard shortcuts I created do not work.  There has GOT to be a patch or workaround for this.  I am working
    on a small network, fyi.  Thanks so much.

    Hi,
    I have noticed that you have replied in a similar thread. Do you have the third party programs which mentioned there?
    And then based on my test, please try the following steps:
    Exit Word 2010> Rename the Normal.dot (Path: C:\Users\uesrname\AppData\Roaming\Microsoft\Templates) >Restart Word. 
    Create the new keyboard shortcuts ,assign to the command and choose Normal to save.
    If it still not works, please give me the whole error message during your saving.
    Regards,
    George Zhao
    TechNet Community Support

  • Setting a new keyboard shortcut

    I am trying to set a new keyboard shortcut.  I named my New Set, chosen the Product Area, chosen the Command and tabbed to the New Shortcut window.  When I try to type in the New shortcut, I can only get 1 letter typed in and then that shortcut pops up(if I try to type Ctrl, as soon as I type C I get a message C   copy).  Any ideas?
    Thanks

    Function assigned was swash
    Product Area:Panel Menu
    Commands:Character: Open type (swash)
    Shortcut is Shift+Ctrl+Alt+M
    as I follow in the lesson, using the type tool, the N is highlighted and then the keyboard shortcut is used and the N then has some added curlyques at the beginnig and at the end of the letter.
    When I try, it deletes the N and gives the green sign (looks like the symbol for non-joiner with a period beneath it).  Not sure why I would get this symbol when I try to insert a swash.
    Vaune

  • How may I edit or create new keyboard shortcuts in iWork applications?

    Dear Pages enthusiast, A daily user of iWork applications, I often perform repeated operations that don't correspond to a default keyboard shortcut. It would great if I could set up my own shortcuts as was possible in Word a few years back. Can you help me find out how this is possible in Pages, Numbers and Keynote? 

    Wow!
    Let me just step back to the opposite side of the room to read that!
    You set up menu shortcuts, as you do for anything in OSX, in:
    Menu > Apple > System Preferences > Keyboard > Keyboard Shortcuts
    Just make sure you spell the menu option exactly, including Upper and lower case.
    Peter

  • New keyboard Shortcuts.

    Hi there.
    I have a MacBook Pro, and used to have a old white keyboard that i would plug into it at work.
    I just got one of the new metal slim ones, and the shortcuts on the top are different.
    Now the new keyboard is not working with the volume up and down, and all the shortcuts are wrong and still the old ones.
    I went into keyboards and mice, and reset all the key shortcuts to default, but no go.
    Does anyone know how to fix this?

    Did you install the keyboard update?
    <http://www.apple.com/support/downloads/keyboardsoftwareupdate12.html>
    Also see
    <http://docs.info.apple.com/article.html?artnum=306169>

  • How can I create my own keyboard shortcut

    Hi, Can somebody please tell me how to create my own keyboard shortcut

    Go to System Preferences > Keyboard > Keyboard Shortcuts.
    Click the item Application Shortcuts in the left pane.
    Then click the + button underneath the right pane. Follow the prompts. You can choose to have the shortcut applicable to all applications, or just to a single one.
    Note - you can create a shortcut only for an item which is already an existing menu item.
    If you want to change an existing shortcut, by selecting the appropriate software in the left pane you can change the keyboard command in the right pane - just click the keyboard shortcut at the right end of the listed shortcut.

  • Create icon for keyboard shortcut

    I would like to create a DESKTOP ICON for the Keyboard Shortcut    (COMMAND-SHIFT-4)
    How can this be done ?

    Don, one last question
    I created the code in Applescript as follows and does not work.
    Tell application "System Events"
    key code 51 using {command down, shift down}
    end tell
    This complies correctly, but does not launch   SHIFT-COMMAND-4  (screen snip)
    Any idea's

  • New keyboard shortcuts AIR application

    There's a new AIR application for searching and browsing keyboard shortcuts.

    Too bad !
    I found another project entirely mad in InDesign though.
    http://tomaxxi.com/2011/02/interactive-shortcuts-guide-for-indesign-cs5/
    Very nice, but just for InDesign unfortunately.
    Thanks for the reply.

  • New keyboard shortcuts PDF available

    Hi everyone,
    We have a new PDF of the SpeedGrade keyboard shortcuts:
    http://helpx.adobe.com/content/dam/help/attachments/SpeedGradeCC-KBSC.pdf
    Download it and store or print for easy reference.
    Eric
    P.S. Special thanks to awesome Mallika, who manages our help docs, for putting this together!

    Interesting ... tried the alt and ctrl scrolling ... and my playhead gets locked in the middle of the visible timeline as the timeline does lengthen or shorten. Now ... as I've neved played much with things like locking playheads to move the timeline instead ... to figure out how other than closing/reopening one unlocks the playhead or locks the timeline, whichever "it" is ... 
    One does find so many things to be illuminating when one jumps into using a program to work and just rams stuff through ... and then tries to play at something else ...  
    Neil

Maybe you are looking for

  • Upload data from excel to application server

    Hi all, Is there any process to upload data from excel to application server other than reading the data from excel to z program through gui_upload and transferring the data to application server. I want to run background job for a BDC program with t

  • How to tame iCal synchronization.

    Hi, friends. I'm very confused and irritated with iCal behavior regarding synchronization. First of all, I moved from MobileMe to iCloud; so I'd expect my data to MOVE, not to DUPLICATE in my desktop copy of iCal and I'd also expect iCal to get ride

  • Create a web site in Visual Studio - fails with SQL Azure V12

    Creation of Microsoft Azure Website failed. <Error xmlns="Microsoft.SqlServer.Management.Framework.Web.Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Message>The service objective 'Web' specified is invalid.</Message><InnerError i:nil

  • Binding the html in MIME to container in view

    Hi All,             I have imported HTML object to MIME repository in the webdynpro component. I have also created the container for it in the view.. The problem : How do i bind this html file to the container in the view?? Thanks

  • SMARTFORMS number of copies

    Hello. I'm producing a simple smartform from MIGO (good receipt). In the initialization of the smartform I'm setting the fields output_options-tdcopies to 2 in some cases. I can see in debug mode that this value is being perfomed correctly. Although