Scripting Styles keyboard shortcuts

Hi.
I'm creating an Applescript for Indd 5.5 that will create a number of documents and add them to a book file. I'm trying to flesh out all the book's documents with as many text and object styles as I can, and ensure each document has only the swatches etc. needed for the book.
I've managed to create text styles and groups (folders) quite easily, but I can't find a way of assigning a keyboard shortcut to a style. Typically, I will be using shortcuts on the numeric keypad, and using the command key (Mac) – Command+Num 8, for example. I've searched the web, but can't find anything that shows how to do it – only how to assign global shortcut sets for InDesign.
Can anyone point me in the right direction?
Thanks,
K@

Well, I was proposing a slightly different strategy.
Export one style from the INDD to IDMS, and then delete
all the extra crap that is not the style definition. That
leaves you with about 20 lines of XML.
Then, write your AppleScript to create a 20-line XML file
containing those literal 20 lines, while adjusting the name
and shortcut of the style.
Then your Applescript can place the IDMS snippet file after it
writes it, and then delete the temporary file. You can then
modify the attributes of that imported paragraph style
in our script.
That's a little bit clunky but it shouldn't keep you from putting the
shortcuts in your applescript code. You are just dynamically
generating IDMS/IDML/XML from your applescript.
You mention maybe you would prefer not to format the style within
the script? Well, then I guess you have even more options
available!

Similar Messages

  • Photoshop scripts and keyboard shortcuts synchronization

    I use Photoshop CC in multiple computers and would like to find out if there is way to synchronize keyboard shortcuts and photoshop scripts across different computers. Is it possible to synch the scripts folder and keyboard shortcuts through Dropbox for instance?

    Have you tried the syncing capabilities in CC? I have not tried to sync across multiple computeres -- having only one -- but the capabilities to sync preferences and actions seem to be possible. However, I believe 'scripts' and 'actions' are not the same thing so I cannot comment on how this sync process deals with scripts.

  • Shell script and keyboard shortcut

    I wrote a bash script, and I would like to start it with a keyboad shortcut, but I can't figure out how to do that. Does anyone know?

    Hi Hugo,
       Keyboard shortcuts are meant for Carbon and Cocoa applications but it can be done; you just have to wrap the shell script in some sort of application. One way is Sveinbjorn Thordarson's Platypus but I just wrap mine with an AppleScript, invoking it with "do shell script". You have to save the AppleScript as an application. Then you open the "Keyboard & Mouse" pane of "System Preferences" and select the "Keyboard Shortcuts" tab. Click the plus sign, '+', pick a key combination and specify your AppleScript or Platypus app as the target.
    Gary
    ~~~~
       Are there those in the land of the brave
       Who can tell me how I should behave
          When I am disgraced
          Because I erased
          A file I intended to save?

  • Is there a PC-Style Keyboard Shortcut for Opening the CD ROM Draw?

    Hello
    I was trying to use a USB PC-Syle keyboard with my G3 Blue & White, and was wondering if there was a Keyboard Shortcut on the keys to open the CD ROM draw?
    It apparently won't open manually .... and of course if it were an Apple Keyboard, then it would naturally have a key for that function.
    Thank you
    Mike

    Hi, Mike -
    OS 9 does not have such a key, per se (I think F12 works only in OSX). The button on the front of the drive should work whenever the tray is empty; if there is a disk in the drive, either drag the disk to the Trash or select it and use Command-Y (Put Away in the File menu).
    You can add a hot-key fairly easily.
    • One way is to locate the Eject Extras folder which may be on the hard drive somewhere; if not, you can download it from here -
    Eject Extras
    You can use the Eject applet contained in that folder by assigning it to one of the FKeys via the FKey page inn the Keyboard control panel.
    The downside of this is that it will control only the built-in optical drive.
    • You can also use a utility such as EjectDisk, which allows for the setting of individual keyboard key-combos for each removable-media drive.

  • Finale Staff Styles Keyboard Shortcut

    In Finale, each of the default staff styles has a keyboard command, which is shown in parentheses in the menu. I created a new staff style (alto flute transposition) and I would like to set a keyboard command for it. Can this be done, and if so, how?

    You will probably get the best advice from the Finale forums:
    http://forum.makemusic.com/default.aspx?f=6

  • Flash script "Function" keyboard shortcut

    Hi, it has been awhile since I used flash, but I forgot this easy keyboard short cut to make the
    function(){
    Appear in the code, then I just fill it in.
    I want to say it is "Ctl+Shift+ ..... "
    An help would be great thanks.

    Esc + f + n
    Needs to be executed like a "Street Fighter II" type move.
    Hold Escape, then roll "f" and "n" in quick succession.
    It sounds crazy and unreal, but it works.

  • How terminate script, keyboard shortcut [CS4 6.0.6 JS]?

    In ID CS4 6.0.5 for terminate script with keyboard shortcut I use Esc or command + "."
    In 6.0.6 if the script is a binary (jsxbin) the shortcut  don't work.
    Why?
    Any alternative for Mac and PC?

    Hi barbara.banister,
    Please go through the below web links its helps to you. How to install the script in InDesign.
    http://indesignsecrets.com/how-to-install-scripts-in-indesign.php
    http://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-o r-blog-post.php
    thx,
    csm_phil

  • "Turn Bluetooth On" with a keyboard shortcut

    Does anyone know how to set a keyboard shortcut to "Turn Bluetooth On"?
    I've looked in the keyboard shortcuts menu, and all I can do is add a keyboard shortcut to an application, but I don't know which application or command I need to set a keyboard shortcut to.
    Thanks

    I just emailed Dan, and asked him how he made shortcuts to menu items. He replied:
    "It evidently varies by menu; some of the "Menu Extra" menus -- those on the
    right-hand side of the menu bar -- let you assign shortcuts, whereas others
    don't. Even when they do, I've discovered that the keyboard shortcut doesn't
    always work. Sorry to be the bearer of bad news! The alternative is a bit
    trickier: Creating AppleScripts for such purposes and then using a
    third-party utility to assign those scripts to keyboard shortcuts."
    I have had good luck using automator to follow my actions, in turning on and off the airport from the menu bar. One problem I found was Automator recognised me clicking the Airport icon, moving down the dropdown menu, but it would not recognise me clicking "Turn AirPort Off". So I had to click on airport icon, then use arrow keys, and Enter key, to select "Turn Airport Off". Then simply make an "application" for this action in Automator, and use some third party app to make a short cut to the automator-created app. I'm going to try out using Spark :http://www.shadowlab.org/Software/spark.php, but you could probably use Quicksilver too.

  • Custom Keyboard Shortcuts Not Working In Layer Style / Blending Options Dialogue Box (Mac OS 10.6.8)

    In the Layer Style / Blending Options dialogue box, my custom Keyboard Shortcuts to zoom in and out of the image is no longer working. Cmd+opt+shift+1 acts as cmd+1 (jumps to Drop Shadow), and cmd+opt+shift+0 acts as cmd+0 (jumps to Stroke). Outside of this box the commands seem to be working fine.
    Example 1: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+1.
    Result 1: The dialogue box shift focus to the Drop Shadow Options instead of the image zooming in to 100%.
    Expected Result 1: The image should zoom to 100%.
    Example 2: Create a new RGB document, cmd+j the background layer, double-click this layer to open the Layer Style / Blending Options dialogue box, mash Cmd+opt+shift+0.
    Result 2: The dialogue box shift focus to the Stroke Options instead of the image zooming to “Fit on Screen”.
    Expected Result 2: The image should zoom to “Fit on Screen”.
    This same thing happened in the CS5 Beta, and it was quickly fixed, so I hope this is not a complicated issue.
    Thanks, and keep up the wonderful work!
    Jacob
    Mac OS X 10.6.8 on a 3.33, 6-Core MacPro5,1 with 16GB RAM w/ separate Scratch Disks & ATI Radeon HD 5870

    Hi,
    If you are experiencing issues with Software Update you could try the Combo Update:
    http://support.apple.com/kb/DL1399
    Cheers,

  • Keyboard shortcuts for applying styles in Pages 5.0

    In Pages '09, you could set a function key as a keyboard shortcut to apply either paragraph or character styles. But I don't see this in Pages 5.0. Have they taken it away or is there another way to do this?
    This feature was key for me—it saved me a lot of mouse clicks and drags and made formatting text very easy and consistent. I'll miss it if it's gone, and may even have to keep using the old version of Pages for this reason.

    Gone along with 90 other features.
    Pages '09 should still be in your Applications/iWork folder. Use that and review/rate Pages 5 in the App Store and delete or archive it to prevent it from opening .pages files accidentally.
    Peter

  • Why have my keyboard shortcuts in Paragraph and Character styles quit working? (indesign cs6)

    I can click on the style in the window, but the keyboard shortcut suddenly does nothing.

    Hi James. Just a few threads down the list there is this: http://forums.adobe.com/thread/1198632?tstart=0
    Even the name of the thread is similar to yours.
    But first, you should do a bit of housecleaning in your font library. From your description it sound like a big mess.
    Do you use any font management tools? Most of the times they do more harm than good (but i am aware that it's a necessary evil for the most part).
    The fonts you are trying to use are in the font library or in the indesign document's folder?
    While Mac is a lot better than Windows in managing multiple fonts/font versions, it's also a lot more "fragile" if something goes wrong with a font.
    Try cleaning the font cache first:
    sudo atsutil databases -remove
    the restart the font server
    sudo atsutil server -shutdown
    sudo atsutil server -ping
    have a look here also:
    http://forums.adobe.com/thread/1201617?tstart=0

  • Script works in Word 2008 but can't assign keyboard shortcut

    Since I must have emacs keystrokes on those fortunately rare occasions when I have to use Word 2008, and because there is no explicit "delete character" command in Word (since there's already a built in keystroke for it, presumably) I've written a simple script that activates the delete key:
    tell application "System Events"
    tell application "Microsoft Word" to activate
    key code 117
    end tell
    I have put this in ~/Documents/Microsoft User Data/Word Script Menu Items so that it shows up in the script menu in Word. If I select the script from the menu via the mouse, it works just fine and deletes the character to the right of the cursor. However, if I try to assign a Word-specific keyboard shortcut (the usual emacs keystroke Ctrl-d, of course) using the Keyboard & Mouse preference pane to this macro it simply doesn't work. "^D" shows up next to the name of the script in the Word script menu, so the shortcut appears to be registering, and the little script menubar icon even flashes blue when I hit Ctrl-d, but nothing happens; the script just does not seem to run.
    Any help appreciated. I really need to have this keystroke to be able to use Word and remain reasonably happy about it.
    -TXLogic

    Follow up: My Word-specific shortcut seems to work the *first time* I use it after bringing up a document. Thereafter it fails. Thanks.
    -TXLogic

  • Keyboard Shortcut for Run Last Script?

    Anyone know of a keyboard shortcut to run the last script that was run? I am editing an animation and have written a script that writes code based on it, and I need a quick way to run it without the open file dialog.
    Thanks!

    Method 1:
    You can assign shortcut keys to the first 20 scripts listed under the File > Scripts menu via the "Adobe After Effects 10.5 Shortcuts" file. Just search for "ExecuteScript" in the shortcuts file to find the section.
    Method 2:
    You can use ft_ToolBar which allows you to launch scripts with the click of a button. You can also create a new button and just paste your script code directly into the provided window without having to create a jsx/jsxbin file.

  • How to add a keyboard shortcut to the Scripts... menu in Photoshop CC 2014? [was: Mune Bar Shortcut]

    Is it possible to add a shortcut to the Scripts... menu item in Photoshop CC 2014
    OSX10.9

    Do you mean add a keyboard shortcut to one of the scripts listed under File>Scripts?
    Look at Edit>Keyboard Shortcuts in photoshop.
    http://helpx.adobe.com/photoshop/using/customizing-keyboard-shortcuts.html

  • 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.

Maybe you are looking for

  • Trouble transfering music to iPhone 5 iOS 7.0.6 from iTunes 11.1.5 on Macbook Pro Snow Leopard 10.6.8

    I recently fixed my Macbook Pro and updated the software to Snow Leopard 10.6.8.  I am having trouble syncing my iPhone with iOS 7.0.6 to my iTunes which is 11.1.5.  It gets stuck on step 4 of 4 "Waiting for changes to apply."   I've reset sync servi

  • CD Burning error sometimes 4280 sometimes 4261

    Hiya, I've recently started getting problems burning, it'll start, check the playlist, then say it's starting to write, and then it'll just cancel and eject the disc Here's the diagnostics ATI MOBILITY RADEON X700 Mobile Intel(R) 915GM/GMS,910GML Exp

  • Goods receipt report

    Hello, I wrote a report regarding materials that don't have a goods receipt in the last x days. It works , but I am not satisfied by the performance of the report. First, I have selected all the materials that I consider as active in the sistem. SELE

  • Bug in Sound Blaster Audigy 2

    Hi, I'm experiencing something that is annoying. I noticed it long ago and it continues happening even with all the updates installed: Windows XP SP2 DirectX 9.0c Drivers: Control Panel, Creative SB Audigy 2 NX, shows 2004/04/9 for the windows driver

  • Delay in the task instance

    Hi Experts, I am trying to put some kind of delay in my workflow using manualaction timeout option but that is forcing IDM to display a page with the checkbox and Save and Cancel buttons. It is also displaying all the variables available to the workf