Sharing keyboard shortcuts via script

Our company maintains a custom InDesign shortcut set which we share among our users. We push the .indk file to each user's "InDesign Shortcut Sets" folder at system startup.
Trouble is, when users receive an updated version of the .indk file, InDesign doesn't automatically honor the new keyboard assignments. Users need to open the Keyboard Shortcuts dialog, select a different shortcut set (such as Default), click OK, then reopen the dialog, select the shared set and click OK.
Not very efficient.
So, I'm wondering: Is there a way to script the selection of a shortcut set? I can't seem to find anything in the object model that would do the trick.

Hi Jurgen - it did go away in 10.4. A lot of users who relied on this feature before have found FastScripts Lite to be a suitable replacement. I can see why you wouldn't want to run yet another app, but hey at least it's free! It will give you essentially an identical user experience as before.
Hopefully Apple will add the shortcuts back in 10.5 (maybe for the whole script menu like FastScripts does?).
Daniel
PowerMac G5   Mac OS X (10.4.6)  

Similar Messages

  • Keyboard shortcuts for scripts

    In CS4, is there a way to assign a keyboard shortcut to a script?

    As far as I know the best you can do is to include it in quick apply. You must enable scripts in that list, I'd advise disabling menu commands also to make the searches easier. CMD/CTL + Return invokes the menu. You can type and find what you need, hit return to run the script. If you've recently run the script you can just hit CMD/CTL + Return, Return to rerun it.

  • Screen Sharing keyboard shortcuts

    I frequently use the built in screen sharing in finder to connect to my Mac Pro from my laptop and vise-versa. I have two 20" displays set up to the desktop and often need to switch between display 1 and display 2. I tired to assign a keyboard shortcut from the Keyboard Shortcuts tab in the Keyboard & Mouse preference pane, but I think my command is being sent to my Mac Pro opposed to the Screen Sharing application on my laptop. If I look in the View menu in the Screen Sharing application it shows the shortcuts I assigned, so I know there is not problem with setting the shortcut.
    Is there any way I can have my command be sent to the app on my laptop opposed to whatever I am currently controlling over the network?
    Thanks,
    -Justin

    Anyone?

  • Assign keyboard shortcut to applescript

    I have setup custom keyboard shortcuts before (Finder > Secure Empty Trash) but I can't seem to get a shortcut setup for an applescript in the applescript menu. The appropriate shortcut is displayed in the menu but when I press the shortcut the script isn't invoked. Has anyone been able to get this setup for an applescript? Any ideas on what could be wrong?
    -brad
    MacBook pro   Mac OS X (10.4.8)  

    You get a copy of FastScripts from Red Sweater software. (last I checked, App store doesn't carry it)
    It'll let you assign keyboard shortcuts to scripts or Apps through i's Preferences Menu item,
    There are other Apps, such as Quicksilver, that'll allow similar assignments.
    Apple's own 'Script Menu' does not allow them.
    FastScripts is what I use. It's cheap, or free, and gets the job done.

  • Cannot get Keyboard Shortcuts or create new

    After updating to iOS 7.0.6 my iPhone 5S lost all keyboard shortcuts.
    I am currently not able to get them from iCloud or even create new ones. After saving a new one it does not appear under the shortcuts and is not working with the keyboard.
    I have tried suggestions on the following link http://support.apple.com/kb/TS3991 as well as resetting iCloud and restarting the phone multiple times.
    Any suggestions would be welcome at this point.
    Thank you.

    Ok, good news, here is a solution that works!!
    This I have tested individually (to confim) with my 2 iphones and the iPad that wouldn't sync properly keyboard shortcuts via iCloud. You can do the below for all your device at once, too.
    Go here and follow the instructions (easy):  http://allezxandre.clarify-it.com/d/dhvzkz
    if you backup and restore via the above method, none of your settings/apps will be deleted, everything stays intact
    After restoring, turn off "Documents and Data" under your iCloud settings and hard reset devices (home + lock)
    Then log into icloud.com, go to Account Settings, Advanced, click on Reset Documents and Data
    Turn on "Documents and Data" in your iCloud Settings (device) and again reboot
    Check "Documents and Data" setting, status may have changed (on/off)
    You may have to repeat 4. and 5. - I had to with one of the iPhone as the status would have a mind of it's own, but eventually the keyboard shortcuts will be back. On all devices.
    The above takes roughly an hour with all the backups, restores etc. BUT it's non intrusive, ie. your device data and settings aren't touched!

  • Keyboard shortcut doesn't execute

    I configured a keyboard shortcut (via System Preferences-Keyboard & Mouse) so that I could just type Control-Option-K for the Add Hyperlink... command. And sure enough, that shortcut appears after the Add Hyperlink... command. However when I invoke the shortcut, nothing happens. Zilch.
    Thoughts from anyone?

    Solved this problem myself, after much testing.
    Turns out virtually every letter in the alphabet is already used by Mail for keyboard shortcuts, with one, and only one, exception: O. As in letter O and not number 0.
    So any other possibilities just won't work. It's O or nothing in this instance...

  • XFCE4+ other windowmanager: no keyboard shortcuts until 1st window

    Hello,
    this is really a minor issue, but nonetheless, I would be interested in a solution:
    When I use XFCE4 with another windowmanager than xfwm4 (so kwin or compiz), keyboard shortcuts (assigned in xfce4-settings) only work after at least one window is open. I also tried assigning keyboard shortcuts via kde-systemsettings or ccsm (Compiz-config-settings-manager), but it's the same for them: No window, no shortcuts.
    As I said, the issue is minor as the workaround is: "open a window!" (so I do now with a terminal at session startup), but does anyone know a solution anyhow?

    Solution for Studio 2 AND Studio 3:
    1) Each time you start your computer, go to System Settings - International
    2) Change the language from your language to English
    3) Change the language from English to your language
    4) Start FCP
    5) Your shortcuts and the FCP shortcuts work OK
    You have to do this each time you restart the computer. People working with the English language setting don't have this problem.
    This bug is about 2 years old. Shame on Apple for not solving the problem!!!

  • 1.Assign shortcuts to scripts 2. Actions remember insert menu commands when app is started

    It been ask before... Many times.  There is probably a current request right now.   It will be asked again... And again... And again...  Under keyboard shortcuts, allow scripts to assigned a shortcut.  Also have actions remember insert menu commands when the application is restarted.   Was patiently waiting years ago... Now I am starting to grit my teeth. When my dentist lectures me over grinding my teeth, she will not be as forgiving as I have been over the years.   It is time to set a small portion of available resources to fix and add functionality to this.

    OK, so at least we have one solution "with shortcut for script problem":
    1. Put "script.jsx" into folder  Mac OS X > Applications/Adobe Illustrator {version}/Presets/{Lang}/Scripts
    2. Make Action, "insert menu item" in it -> select "File\Scripts\script.jsx"
    3. Assign shortcut to this action. PROFIT
    But! The problem is: Illustrator "forgets" about menu item in action after restart.
    Therefore you can use script shortcut only one time per "session", and every time starting we need to make "insert menu item".
    Well, this is the second part of topic question, I guess. And I don't have solution. This is what I got:
    0. If you have several scripts with shortcuts, everyday inserting all scripts in actions is boring. Make a folder for this actions. And "Save actions" it to ".aia"
    1. Every time starting Illustrator — Delete folder with your special "scripts-actions" (because it's actions is emptied!)
    2. Then go to "File>Scripts>...". Now just gently stroke your scripts with cursor. Like a kitty. Ahahaha! )) It is not a joke!!! Do not start the scripts, just enter to its' submenu.
    3. Now "Load actions" from your .aia. Have a nice automated session with your magic scripts! This works for me. If you have daily work routine and 5-10 scripts, this is the best solution.
    * If you skip step 2, you will get "Some event has not been registered for actions"! And empty action. If first you will stroke the kitty, you will get your magic shortcuts after "Loading actions"! As I told, this not a joke, but strange Illustrator behavior.
    * If you did not delete previous folder (step 1), you'll get 2 folders with actions, old one — without scripts, new one — without assigned shortcuts. And nothing works. Delete all and reload.
    * One more thing. I have Scriptographer Extension. This extension manages scripts (js) and has "scriptographer palette". In this palette I found shortcuts, to execute selected script and etc. So, in theory it is possible to rebuild this extension with shortcuts for some scripts. Maybe we should dig in that direction? I'm too stupid for this.

  • Keyboard shortcuts to user-scripts don't persist

    Dear Adobe,
    theres a behavior of indesign thats driving me crazy. Every now and then i am forced to  repair and re-assign all my custom keyboard shortcuts to my user-scripts. That's lot of work.
    This is the case when i had to flush the indesign preferences (most often in order to repair a disfunctioning palette). Indesign will then re-index the scripts with new internal unique identifiers and the keyboard shortcuts won't match the old unique identifiers anymore and get shuffled into chaos.
    Also, this is preventing me from sharing my preferences over severall computers via a networked folder containing the preferences and shortcuts.
    IT ALMOST WORKS! I can sync all my prefernces, colorsettings, workspaces etc. via Dropbox on 3 different computers.   But the shuffling of user-script unique identifiers keeps it from working for the keyboard shortcuts.
    Please consider to find a solution to this in your next patch.
    Is there any way to influence the assigned unique identifiers for the scripts to sync them on different computers?
    kind regards,
    Stephan Möbius

    Ah right - that is very messy indeed.
    The only direct route you have with Adobe is the Wishform https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    But unless it gets flagged by a number of people with the same problem and it's causing havoc then I don't think it will be prioritised as a fix.
    You can also post this on the InDesign wishlist forum http://indesign.uservoice.com/forums/114445-adobe-indesign-wishlist
    I don't really see where else you can add a wishlist to.
    I think perhaps visit the InDesign Scripting Forum and see if anyone can russle up  a script that saves your shortcuts a bit better.
    http://forums.adobe.com/community/indesign/indesign_scripting

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

  • [TUTORIAL] ADD YOUR OWN KEYBOARD SHORTCUTS TO YOUR JSX SCRIPTS

    This is for Windows only; it uses a feature to launch your favorite software via a keyboard shortcut. It’s been here for a while but it just never occurred to me to use it for this purpose.
    1.       Create a shortcut on the Desktop that points to your script.
    2.       Assign a keyboard shortcut to it. That’s it!!!!
    If you don't know how, here’s a step by step
    1.       Open the folder where all your scripts live
    2.       Right click on any of them and click on “Send to …” -> “Desktop (Create Shortcut)”
    3.       (Optional) Rename the shortcut; to help you remember it is a good practice to include the actual key combination
    4.       Right click on the shortcut, click on “Properties”
    5.       The Shortcut Key says “None”, place the cursor there and hit for example Ctrl+Alt+8
    6.       Click on “Apply” then on “Ok”
    7.       That’s it, go to Illustrator and hit your key combination.
    Notes:
    1.       Add the following line to the beginning of all your jsx scripts “#target Illustrator” (without the quotations)
    2.       If there are duplicate key combinations, your newly created shortcut will take precedence over any existing Illustrator shortcut used for something else, so…to help you see what key combos are available:
              1.       In Illustrator, go to “Edit” -> “Keyboard Shortcuts…”, then click on “Export text…”
              2.       The file is saved as a text delimited, open it with Excel or similar program to be able to sort
              3.       This is what I get, a sorted list that easily shows what’s available
    3.       If you have lost of scripts, your desktop will soon be overcrowded with icons, which many people really hate. An alternative could be to create a shortcut to the folder containing all your scripts and assign a key combination. When you’re in Illustrator and use the key combo the folder will open and you will have to double click on the file to run it. Not ideal….but your desktop will be uncluttered and is still better that going to the menus to run your scripts.
    any comments or questions are welcomed

    Carlos - it is not a windows security warning, and there is no checkbox. This is coming from extendscript (it has that icon when you alt-tab). Windows doesn't know that this is a script, the OS just launches extendscript with the file as an argument.
    The text is:
    You are about to run a script in Adobe Illustrator CS5. You should only run scripts from a trusted source. Do you want to run the script?

  • 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

  • Is it possible to have a keyboard shortcut run a script with CS6?

    I see there is an option for it to go to "other scripts" with a keyboard shortcut, but that really doesn't help much. I want it to play a specific script that is already loaded. Thanks in advance!!

    I'm working on something very similar right now.
    Written in AHK.
    so win only sorry Macsters...
    Scans a folder of your scripts and displays them in a panel (see above)
    you can click any one like a button.
    or you can eg. 3 enter.
    Panel can be dragged to where ever you want it.
    Still playing with the finishing touches and will post the finished result once I am done.
    That will be next year some time, as I am finished work for the year.
    Run, % "[Full path to]\Illustrator.exe " Scriptlocation JSName
    this is my AHK line to run the script.
    any reason for the cmd.exe section

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

Maybe you are looking for