Use Shell Script to create a keyboard shortcut for a installed Service

I'm not even sure if this is possible, but I hope someone out there has an answer!
I have an automator Application that I'm using to install a service to my Mac(will be deploying this to hundreds more). Id like to have this Application contain a Shell script that sets up a keyboard shortcut for the service after it is installed.
Anyone know how to do that?

You need automator to create services, as detailed in http://discussions.apple.com/thread.jspa?threadID=2241804 a four-parter by Sal Saghoian on *Automation in Snow Leopard*
This, describes old and new automator—services stuff:
http://www.reynoldsftw.com/2009/08/automator-and-finder-interactions-in-os-x-10- 6/
Alternatively, just save the script
*+tell application "Firefox" to activate+*
as an app, put it on the Dock, and click it to activate it. However, seems simpler just to put the FF icon on the Dock and a single click launches it. Why would you want a service or AS to do the same thing?

Similar Messages

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

  • Any way to create a keyboard shortcut for keywords in Bridge CC?

    Just curious if there's any way to create a keyboard shortcut for "new keyword" and "new sub keyword" in Bridge CC?
    If not, that would be a welcome addition in any future Bridge update - being able to customize keyboard shortcuts or add your own the way you can in Premiere Pro CC.

    Steve,
    Not, as far as I know, directly, but the problem is with Aperture, not Keyboard Maestro.  Aperture has no command (afaik) for selecting the caption field of the Info Inspector.  Without a command, you will have to find another way to access it, or another way to accomplish what you want.
    You can specify the spot clicked by screen coordinates, so you cold use the Inspector HUD and the coordinates of the Caption field, as long as the Inspector HUD always pops up in the same location.
    Many dialog boxes allow the user to advance through the fields with the Tab key.  Unfortunately, the number of times you have to type "{Tab}" in order to get to a particular field depends on other interface elements (if the Control Bar is showing, add 2).  I don't know of a way to determine if the Control Bar is showing.
    You might find a work-around using a Metadata Preset and the Batch Change command.  Keyboard Maestro can easily pop up a dialog with a text field in which you can type what you want to go into Aperture's Caption field.
    The best thing to do is download the trial version and see if it meets your needs.  Keyboard Maestro is adept at creating macros based on keyboard input.  If the program does not provide keyboard equivalents, writing an effective macro becomes difficult.
    http://www.keyboardmaestro.com/main/
    The author provides exemplary documentation:
    http://wiki.keyboardmaestro.com/About_Keyboard_Maestro
    Lastly, for the use you cite, I simply show the Inspector if it's not showing (by typing "i"), change to the Info tab if it is not currently activated (by clicking, but note that opening the Inspector with the Info tab selected can be done with one command "View➞Inspector➞Info"), and then clicking in the Caption field, which is part of all of the Metadata Views I regularly use.
    HTH.  Perhaps one of our programming mavens will suggest something better.
    --Kirby.

  • Is there (or can I create) a keyboard shortcut for the command "export"?

    is there (or can I create) a keyboard shortcut for the command "export"?

    Keyboard Shortcuts are created in the System Preferences app, Hardware section, Keyboard, Keyboard Shortcuts tab.
    Select Application Shortcuts on the left.
    Click the "+" sign on the right and in the dialog box that pops up, enter: "Export..." and your preferred key combination. Here's an example:
    Keep in mind that when you enter the name of the action in a layered menu, such as File > Export..., or Share > Export..., you are only going to enter the last menu choice, not the higher levels.
    Regards,
    Jerry

  • How do I create a keyboard shortcut for a nested finder menu item?

    Specifically I'm trying to create a keyboard shortcut for Finder>Services>Mail>Send File.
    Any help would be appreciated.

    pmasitti,
    Under System Preferences > Keyboard & Mouse > Keyboard Shortcuts, click on the "+" sign. From the drop-down menu choose Application: Finder, Menu Title: "Send File" (without the quotes), Keyboard Shortcut: whatever.
    Close system System Preferences and quit the Finder for the change to take effect. You can easily quit and relaunch the Finder from the Apple Menu > Force Quit. Select Finder and click on the Relaunch button.
    For the action to complete, select the Finder item before pressing your keyboard short cut.
    Worked for me... good luck!
    Andrew99

  • Creating a keyboard shortcut for Calendar's Export- doesn't work

    I created a keyboard shortcut in Calendar to easily export calendars (let say option-ctrl-E).
    When I launch Calendar the shortcut doesn't work. But after I opened the File Menu, then the Export sub-menu, the shortcut DO work as expected.
    As I need this for an Applescript (there is still no Export… command in Calendar's dictionnary!), it's quite annoying.
    Interestingly, I don't have the same problem when I create a shortcut for "Calendar Archive…".
    I know I can of course use GUI scripting in AppleScript, but it's quite annoying.
    Any idea?
    p

    Does it continue to fail on a restart of the app?
    I can offer a workaround:
    If you need to automate creating a Calendar Archive, just copy all the .caldav, .calendar, and .group folders, allong with Attachments from ~/Library/Calendars/ into a folder called Calendar. Package it up in a folder with a .icbu file extension and add an info.plist file to that folder with the following information:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>date</key>
              <date>2013-03-07T01:08:00Z</date>
              <key>version</key>
              <string>2.0</string>
    </dict>
    </plist>
    Right-click on a Calendar archive and choose "Show package contents" and you'll see what I am describing.

  • 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

  • Can I create a keyboard shortcut for opening a document in a specific program?

    Hi there,
    I'm getting into html scripting and javascript programming. The files I'm working with are .html and .js. When you first click on these files they open in safari which I like, but I don't like having to right click and select "open in textmate" can I create a shortcut so I can just select the .html and .js files and hit a shortcut to pull up in an alternate program?

    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

  • Creating a keyboard shortcut for a director movie button

    Hi, I am relatively new to director,
    I have created a director movie which I currently control
    with a number of onscreen buttons. Each button runs several
    different behaviours when the button is pressed. I was wanting to
    know if there was a simple script I could create, that would map a
    keyboard shortcut key to some of these buttons. For example, if I
    pressed the "a" key, it would call mouseDown(The sprite number of
    the button associated with the "a" key). without me actually moving
    the mouse into the button or clicking on it.
    Thanks,
    -Matt

    You could try playing with 'the keyDownScript' or 'the
    keyUpScript'.
    For example:
    on prepareMovie
    the keyDownScript = "mCheckKeys"
    end
    on mCheckKeys
    if the controlDown then
    case (the key) of
    "a": sendSprite(1, #mouseDown)
    "b":...
    end case
    end if
    end

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

  • Can I create a keyboard shortcut for an AppleScript built into Quark6

    I do a lot of photo scatters and sometimes have to use the "Picture box" "place name" script in Quark6. I wish I had a keyboard shortcut, because I use it as many as 80 times on a set of scatter images.
    I am clueless about how do do this, is it possible?

    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

  • How do I create a keyboard shortcut for compressing text?

    I am in a prepress situation where we build print advertisements.
    The company has just gone over to Indesign from Quark.
    I would like quick access to text compression similar to Quark's 'Ctrl ['.
    I can't find the facility to compress in 'Edit/Keyboard Shortcuts/Type'.

    - Navigate to Adobe InDesign's "Edit" menu and select "Keyboard Shortcuts." The Keyboard Shortcuts dialog box comes up on your screen.
    - Click on the "Set" pop-up at the top of the Keyboard Shortcuts dialog box. Choose "Shortcuts for QuarkXPress 4.0." Now click "OK." That's all you have to do to make Adobe InDesign behave more like QuarkXPress.
    - Attempt to use a QuarkXPress shortcut and you find your familiar hands-on environment within Adobe InDesign. This saves you time by letting you leverage the value of your experience in a new software package.
    - Return to the "Edit" menu and choose "Keyboard Shortcuts" again if you prefer the keyboard commands from QuarkXPress but always wanted to change one or more of them. Don't try to edit the shortcuts in the "QuarkXPress 4.0" set  itself. Instead, click the "New Set" button. In the window that comes up, type a distinctive name for your new shortcut set. Choose "Shortcuts for QuarkXPress 4.0" from the "Based on Set" pop-up. Now click "OK." The "Product Area" pop-up  helps you assign new shortcuts to as many menu items as you wish. (If you try to assign a shortcut that's already in use, you see the conflict listed at the bottom of the dialog box.) When you've finished your changes, click "OK" to use your  new settings.
    - Test your new shortcuts

  • How to create a keyboard shortcut in firefox for email link

    I would like to create a keyboard shortcut for firefox for the EMail Link menu item. I specified shift-Command-S as the keyboard shortcut. When I hit the key sequence the File on the menubar flashes but the Email Link window never opens. Does anyone have a clue as to what I need to do to get this to work or is there a reason it doesn't work. I do use Outlook for my mail client. That shouldn't be a problem because when I manually select EMail Link from the File menu Outlook is properly used.
    thanks for your help
    john

    You need automator to create services, as detailed in http://discussions.apple.com/thread.jspa?threadID=2241804 a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    This, describes old and new automator—services stuff:
    http://www.reynoldsftw.com/2009/08/automator-and-finder-interactions-in-os-x-10- 6/
    Alternatively, just save the script
    *+tell application "Firefox" to activate+*
    as an app, put it on the Dock, and click it to activate it. However, seems simpler just to put the FF icon on the Dock and a single click launches it. Why would you want a service or AS to do the same thing?

  • How do I prevent fullscreen to create its own space or how do I create a keyboard shortcut to such a fullscreen space

    Hello,
        In Mountain Lion, I could select from the dock icon the Options -> Assign To -> This Desktop to link back a fullscreen app to one desktop which allowed me to have a direct shortcut to my fullscreen app, e.g. ⌘3. In Mavericks this does not work and I cannot find how to disable the new space for fullscreen app nor how to create a keyboard shortcut for switch directly to that app once it's in fullscreen.
        Any help would be much appreciated, I would hate to have to downgrade back to Mountain Lion.
    Cheers,
    kybus

    The most typical solution for enterprise sites is to store their users credentials in an LDAP store such as Oracle Internet Directory (OID) or MS Active Directory. LDAP is an industry standard for extremely fast directory services over IP network infrastructure (http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol).
    In turn some sites store their user credentials in databases tables. Of course databases can be configured for fast lookups too, but it is a database centric solution where LDAP is designed to work across networks and is ideal for servers as a result which live and breath on the network.
    In case of Java EE applications and especially those written in ADF, the use of these services isn't written into the application, but rather the application delegates this responsibility of configuring and providing these services back to the Java EE server. So for example Edwin's post is about configuring a WLS "security provider" to lookup user's info from the database, and here is another blog I wrote for MS Active Directory a while back (http://one-size-doesnt-fit-all.blogspot.com.au/2008/12/configuring-wls-with-ms-active.html). The main advantage here is you don't have every application baking its own solution, rather WLS provides a standard well tested way to configure the security lookups.
    In terms of writing (i.e. creating users) to the security store over reading from it, indeed you need to build your own code. Ramandeep Singh Nanda has a nice post on doing this with OID through Oracle's OPSS: http://ramannanda.blogspot.com.au/2011/09/opss-adf-security-utility.html
    Finally what sites like Amazon and Facebook do aren't necessarily good examples to follow as they're application's requirements are typically far in excess of a typical enterprise site, and in turn have often written bespoke solutions to deal with their scalability and distribution requirements. I dare say LDAP is a good choice for 99% of enterprises.
    CM.

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

Maybe you are looking for

  • How to integrate new Facebook social plugins with a Flash website?

    Facebook has just released a suite of social plugins which are supposed to be very simple to implement (one line of HTML is the promise, in the form of an iframe). However this approach is not compatible with a full flash website. The iframe will not

  • Jagged edges around inserted jpeg images

    Hi There I am using Adobe Acrobat Professional 8 in Windows 7 Professional 64 bit When producing pdf's using Adobe Acrobat Pro 8 with the setting on high quality the images produced have very jagged edges (Jaggies) especially around logo's & imported

  • Media Manager - After Effects - Quality

    Hi, I'm not exactly sure where to ask this, so I'm asking here. I'm editing a ProRes 422 sequence in Final Cut. If I 'copy' media using Media Manager, getting rid of the unused portions (while keeping 2 sec handles), will there be a loss of quality i

  • Does reinstalling OSX Lion force all files to be reinstalled?

    My USB Ethernet has stoped working on my 2011 MacAir. I've tried all the fixes I could find on these forums including new locations, manual set up etc; The last recommendation is to reinstall the OS. Question - does doing this automatically force a f

  • Style AdvancedDataGrid Summary Rows

    I have an AdvancedDataGrid with summary rows. Everything works fine, but the user wants the summary rows bolded, so the totals stand out even when the categories are expanded. There don't seem to be any style properties, itemRenderers, or labelFuncti