Is it possible to make a keyboard shortcut for a specific color for fonts?

I'm a novice InDesign user and these forums have been a great resource, so thank you for your time.
I'm doing a very complicated "text art" project and I'd like to be able to change text colors right from the keyboard.
In Word, one is able to make a keyboard shortcut (to an unused key combination) that would allow you to change text to white, for example and another combination to change it to black, etc.
I'd love to be able to do that in InDesign without having to mouse over to the color swatch or over to a paragraph style with the text color set.
Again, thank you in advance!

For anyone else who has this problem - I actually found out an easy workaround.
There's another forum that addresses the NumPad issue for MacBooks (http://forums.adobe.com/thread/324960) and I did a modified version for character styles v. paragraph styles per the final comment by Kaj-Ettore.
==
(1) Open text edit and copy the below script (for me it was changing the text to white):
try{app.selection[0].applyCharacterStyle
(app.documents[0].characterStyles.item(1),true)}catch(e){}
Watch the number '(1)' in brackets on the last line: This is the Style number according to the Styles listed in the 'Character Styles' Panel of InDesign (following "[None]").
Per my setup, "White" is 1 and "Black" is 2.
SEE SCREENSHOT:
Decrement the style you'd like to be applied via this script from the styles listed in the InDesign-applet 'paragraph styles'.
*Note - This Workaround only works for specific Documents – since InDesign links Styles with document templates.
(2)  Save the Script to:
%InDesign_Install_Folder%\Scripts\Scripts Panel\Samples\JavaScript\Style(%nmb%).jsx
or name the file as you like. You'll have to assign a keyboard-shortcut to this and other files later, so it is wise to choose a common and memorable syntax for naming, e. g. numbers or style-names. (I used Style(White).jsx)
(3)  Repeat this step for every style you'd like to be applicable via a keyboard shortcut...
This is my "Black" script:
try{app.selection[0].applyCharacterStyle
(app.documents[0].characterStyles.item(2),true)}catch(e){}
Saved as: Style(Black).jsx
Assign a Shortcut to the Script
(1)  Open InDesign > Preferences > Keyboard Shortcuts > %YourSetOfShortcuts%
(2)  Select 'Scripts'
(3)  Choose the first script you've written, e. g. 'style(body).jsx'
(4)  Create Shortcuts for Standard- and Text-Environment
(5)  Repeat for any script you've written
(6)  Done.
This worked perfectly for me and I can now use ONE keyboard shortcut (albeit 3 simultaneous keys) to change from black text to white text.

Similar Messages

  • How to make a keyboard shortcut for this character: ⌘

    I am growing very fond of the Character Palette, but there are some characters I like to use allot, and it's becoming a nuisance opening the whole window just to insert a ⌘. I was thinking maybe there is a way to make a keyboard shortcut for this character, just like option-shift-K creates . I opened the keyboard viewer and was thinking maybe I could drag the character into an empty space to create a combo...but it's not letting me. Is there any way to do this?

    This is a feature Apple should definitely add customization to on OS X.
    You can make custom keyboard layouts that include any characters you want using Ukelele.
    http://scripts.sil.org/cms/scripts/page.php?siteid=nrsi&itemid=ukelele
    I doubt Apple is going to incorporate this into OS X, but you can suggest it here:
    http://www.apple.com/feedback/macosx.html

  • Problem with keyboard shortcut for font size in CC photoshop. The incriments sometimes work, i.e it goes 1 points at the time, but sometimes it goes 10 or even 20 points at the time. It seems to be very random. Any thoughts?

    Problem with keyboard shortcut for font size in CC photoshop. The incriments sometimes work, i.e it goes 1 points at the time, but sometimes it goes 10 or even 20 points at the time. It seems to be very random. Any thought

    You should ask in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Is it possible to create a keyboard shortcut for "Export book to PDF"? (Cannot find it in the Keyboard Shortcuts window.)

    I'd like to create a keyboard shortcut for the "Export Book to PDF" command on the Books panel menu, but I simply can't find that command in Keyboard Shortcuts. After not finding it in what seemed the logical place (Keyboard Shortcuts > Product Area: Panel Menus > Book), I've looked through all the Product Areas listed on the dropdown menu -- but it seems I must be missing something.
    What do I need to do / where do I need to look to assign a keyboard shortcut for this command?

    Sorry, I agree that that is missing in action. I don't know of a workaround unless someone has written a script. Scripts can be called with keystrokes.

  • How can I make a keyboard shortcut for 'insert footnote' in Pages 09?

    I do a lot of accademic work and it is incredibly frustrating not to have a shortcut for one of the most frequent tasks i perform in pages. Please can someone help me?

    Menu > Apple > System Preferences > Keyboard > Keyboard Shortcuts Application Shortcuts > + > Application: Browse to Pages > Menu Title: Footnote > Keyboard Shortcut: hit combination of keys > Add
    You will need to restart Pages but should then see it next to your Menu item.
    Peter

  • Is it possible to create a keyboard shortcut for Add Audio Keyframe?

    I would like to assign a keyboard shortcut to be able to create an audio keyframe at the playhead. There doesn't seem to be an option in the Keyboard shortcuts menu.\
    This feature allows the editor to keyframe audio and mix without having to use the mouse. Also, this feature was available in FCP 7.

    Still dont know how one would set parameters but...
    I would suggest a "better" way to set some audio keyframes is to do a live realtime mix from the audio mixer in Write Mode.
    Then adjust KFs or overwrite them using mouse or MIxer facilties.
    I have never quite understood how one can mix using KFs on a static audio track!
    Its an ear/listening thing..IMHO  ( well thats how the pros do it anyway)

  • InDesign Keyboard Shortcut for Submenu Item

    I am attempting to make a keyboard shortcut for a particular menu selection in InDesign CS5. Particularly, I want to select an Adobe PDF Preset
    ("PDF/X-1a:2001") from the submenu. However, when I try select this in Keyboard Shortcuts, all I get is "Define" .. which of couse will bring me to the presets window. I want to be able to select a preset and assign a keyboard shortcut (in this case F15).
    Does anyone have suggestions on how this can be done? I tried various ways, but still can't select anything from that submenu.
    Thanks.

    Hey,
    I agree with Cari! Using SHIFT while clicking on PDF preset name would speed up things! On the other hand, you can use scripting to define which export profile to use and choose destination folder. Great thing about the scripts is that you can assign custom shortcuts to them!
    // Set PDF Preset name
    var myPreset = "[PDF/X-1a:2001]";
    // If not using CS5 or later, set this to: false
    var usingCS5 = true;
    /// --- DO NOT EDIT --- ///
    if(app.documents.length)
        doExport();
    else
        alert("No documents opened");
    function doExport(){
        try{app.pdfExportPresets.item(myPreset).name}
        catch(_){
            alert("PDF Preset not found!\nPlease check name and try again!");
            exit();
        var myFile = (function(){
            var setFile = File.saveDialog ("PDF export based on " + myPreset + " ...", "PDF:*.pdf");
            if(setFile != null)
                return setFile;
            else
                return false;
        if(myFile != false){
            if(Boolean(usingCS5))
                app.activeDocument.asynchronousExportFile (ExportFormat.PDF_TYPE, myFile, false, myPreset);
            else
                app.activeDocument.exportFile (ExportFormat.PDF_TYPE, myFile, false, myPreset);
    All you have to set is PDF preset name and you are good to go! Also, you can save this script with different names containing different presets name and assign different shortcuts to every one of them.
    Hope that helps.
    Marijan (tomaxxi)
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/
    http://twitter.com/tomaxxi

  • Keyboard shortcut for master selection possible?

    Is it possible to assign a keyboard shortcut to a particular master slide? There are 2-3 masters I switch back and forth between, and it's a real pain to go to the mouse when I need to switch masters. Creating a shortcut doesn't seem to fall into the standard paradigm, because there's no menu item for it. How can I do this?

    Select all the text, and then select the chosen font.
    Alternatively, create two similar styles, one using Arial, the other with Courier.

  • Keyboard shortcuts for functions inside paragraph styles panel possible?

    I would like to assign keyboard shortcuts for functions inide the paragraph styles panel in PS CS6.
    It seems that no option to do this  is exposed - ist this correct?

    That's an interesting approach and it made me aware about menu item insertation - but unfortunately none of the suggested works.
    Clear overrides when executed by button can work both on selections of text and on complete text blocks, the recorded version of
    pressing the button disregards that there's a selection and therefore only works globally. The menu insertation method can not deal
    with existing selections either - it's entry is greyed out in the actions panel when portions of the text are selected.

  • How to change keyboard shortcut for cycle through open tabs in PS and AI CC 2014

    I would love to set my own keyboard shortcuts for cycling through open tabs in PS and AI 2014 on OS X. I found out that this can be achieved with ctrl+tab in PS, but I couldn't manage to make any of the suggestions in the forum work for AI. As said, I would like to set a more "standard" shortcut like alt+cmd+arrow-keys for both of the apps. If that shouldn't be possible, does anyone know a shortcut in AI CC 2014?
    Many thanks!
    Amadeus

    Thanks! The shortcut can be set like this in AI, although all key combinations I would want to use are not allowed. Too bad. But anyways, thank you very much for the tip!
    cmd+~ is not an option for me, I guess, since the swiss/german keyboard layout has no dedicated tilde key.
    So, I have a working shortcut in PS (ctrl+tab / of which I still don't know how to change, if possible at all) and thanks to you, I can now set one in AI as well. Unfortunately, I can not set it to be identical as in PS, since the "cmd" key needs to be included in AI's shortcut assignment dialogue, but I guess, this is as good as it gets.

  • Are there keyboard shortcuts for switching to desktops with fullscreen apps?

    Coming from SL, one functionality that I used a lot was keyboard shortcuts to go to different applications.
    For instance, I had assigned Mail to Space 2, iTunes to Space 3 etc.
    Then it was possible to instantly go to Mail by pressing alt-2, to iTunes with alt-3 etc.
    In Lion, it is possible to assign Applications to desktops, and use the same commands to go to these desktops. However, as soon as an application is 'fullscreened' it leaves its previous desktop, and cannot be reached with the old keyboard shortcuts.
    My question:
    is it possible to create a keyboard shortcut to switch to a desktop containing a fullscreen app?

    This is quite possible. The way to do it is with keyboard shortcuts. If you check the appropriate boxes you can use a keyboard combination of Control and the Desktop #. It makes it very easy to swtich between desktops.

  • Keyboard shortcut for creating new Desktop

    Switching from primarily using keyboard shortcut navigation on a PC, I've realized that the OS X is missing a keyboard shortcut for creating a new Desktop or Space. You need to use the mouse to do this, either by clicking the Add Desktop icon in the upper right corner of Mission Control, dragging and dropping an open window to the Add Desktop icon, or entering full screen mode. Though it is possible to toggle full screen mode using a keyboard shortcut under Systems Preferences, not all applications can enable full screen.
    Does anyone have a possible solution to this problem?

    Hi- There is no longer a dedicated key on your keyboard to do that. However, follow these steps to make one...
    Click on System Preferences, Keyboard, and then choose Keyboard Shortcuts tab. In the lefthand column, select Expose & Spaces On the right, you will see that Expose has several shortcut key options. Make sure that the checkbox for Desktop is filled in, and double click it, and press the keyboard key you would like to activate it. If I may suggest, F5 or F6 are good choices.
    That is it! You are good to go.

  • Keyboard shortcut for selecting clips

    I'd like to program a button or buttons on my control surface to select clips in the timeline. Are there keyboard shortcuts for selecting clips? (it's not "x")

    Thanks RedTruck.
    The problem with x is that it seems to mark every clip, but I think you may be on to something. Is there a keyboard command for selecting the target track? I could possibly add that command to the macro to make this work....trying to get to mouse-free editing.

  • How do I change the keyboard shortcut for Cycle through open documents in PS CC for Mac?

    Sorry to bug the community with such a seemingly inconsequential task, but I am seriously tired of using the awkward default keyboard shortcut for cycling through open docs in PS.  I'd like to change it to what I am used in in Chrome, which is Cmd+Option+[left] or {right} arrow keys.  I noticed this is not a command listed in the in keyboard shortcuts, for whatever reason.  Where on Earth can I change this? 
    If it is not possible to do it by default, is there a plug-in or a change to the code that will allow this basic functionality? 
    Thanks again guys and gals!

    As far as I know, you can't. It's "hard wired" in.  Not even Edit > Keyboard Shortcuts is allowed  to change it.
    However I did find this tip:
    Anyway i never found tabs in Adobe application useful, instead i prefer the old school method: simply switch off tabs feature via illustrator/ preferences/ user interface/ open documents as tabs. Then in Mac preferences panel, under keyboard, just search for the “focus on next application window” field (under menu, keyboard and text) and assign a shortcut if the default option doesn't fit you. And there is now you can easily switch between open documents!.
    The best part of this is that it can be used in all mac applications, not only Adobe ones. And remember, if you want this working on Indesign, Photoshop, etc be aware of first switch off the tab features so that the system could “see” multiple documents opened not only one single tabbed document.
    Gene

  • Can I create a keyboard shortcut for changing text colors in Mail?

    When composing an email in Mail (v5.2), I often have the need to change the text of a few words to red to highlight them (e.g. names of people assigned to an action item) but want to do it via keyboard shortcut.  I know I can do the following:
    Press Command-Shift-C brings up to Colors panel
    Choose the color (e.g. Red) with my mouse
    Type the text
    Choose the color (e.g. back to Black) with my mouse
    Continue typing text
    And that's if I want the color panel to stay visible (add at least 3 more steps all together if I close it in the interim).
    I've tried using keyboard shortcuts to assign a color (couldn't find the right menu path) and Automator to create a script (the color panel always has to be in the right location which it may not be). None of those techniques work.
    It's an annoyance more than anything else but I imagine it should be possible.
    Thanks for any assistance!
    John

    Not only is this very possible, it's also very easy. You can do this not just for Quark but for any application in OS X. To accomplish what you want, do the following:
    * Firstly, quit QuarkXPress completely. The rest of the steps won't work if it is still running.
    * Go to the Apple menu and select System Preferences.
    * Click the Keyboard & Mouse System Preference Pane
    * Click Keyboard Shortcuts
    * Click the + button to add a new shortcut.
    * Select QuarkXPress as the application.
    * In the Menu Title field type "Place Name" exactly like that but without the quotes.
    * Click inside the Shortcut field and type the key combination you want to use for this shortcut. I suggest using Command + one of the F keys, like Command+F1.
    * Click Add.
    * Close System Preferences
    * Run Quark, open a document, and try it out!
    Robert

Maybe you are looking for

  • How to keep the right sidebar on this website from going under the main content (center) column?

    Hi...is there a way to keep the right sidebar on this website from going under the main content (center) column when the browser window is made smaller? It would be great if the middle (main content) column could get smaller instead of the sidebar mo

  • Microsoft word constantly crashes

    I have a 2009 macbook pro I have microsoft word 2008 on it but it constantly crashes! Needless to say this is infuriating and I'm about to throw the **** thing out a window before smashing it to pieces with a sledgehammer. Not really, but I want to.

  • OCA material needed plzzz help me

    HI I want to get OCA certification and i needed OCA material. Anybody help me in this regards?

  • Re-install dreamweaver CS4

    Trying to re-install dreamweaver cs4 after a computer problem. During installation, program would only process thru 90% of the check system profile before completly stopping. Let it run over an hour and nothing happen

  • How to use tlfx in Flash builder 4.

    Hi, How can i compile the tlfxproject and include it in flash builder 4? I need the table and bullet features, to create an advanced editor. I already have the source for tlfx, but don't know how to proceede. Thanks. Allan