• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I script to add a keyboard shortcut in System Prefs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I script to add a keyboard shortcut in System Prefs?


  • Subject: Re: Can I script to add a keyboard shortcut in System Prefs?
  • From: Oakman <email@hidden>
  • Date: Mon, 16 Mar 2015 20:19:55 -0400

Have you considered editing the info.plist to build-in your shortcut into your service before you make your pkg?

It's under the NSSerivces key:

<key>NSKeyEquivalent</key>
<dict>
<key>default</key>
<string>e</string>
<== shortcut opt+cmd+E
</dict>

Oakman


On Mar 12, 2015, at 5:01PM, Bill Vlahos wrote:

How can I use AppleScript to set a keyboard shortcut to a Service?

I can do it manually in the Keyboard System Preference Shortcuts tab by selecting the shortcut then an “add shortcut” button appears.

Using PackageMaker I am able to install the service but I’d also like to automatically set a keyboard shortcut for it after it is installed.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Can I script to add a keyboard shortcut in System Prefs? (From: Bill Vlahos <email@hidden>)

  • Prev by Date: Re: Can I script to add a keyboard shortcut in System Prefs?
  • Next by Date: Re: A question on technique
  • Previous by thread: Re: Can I script to add a keyboard shortcut in System Prefs?
  • Next by thread: What Does Error Return ?
  • Index(es):
    • Date
    • Thread