Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > is it possible to create keyboard shortcuts for an application?

is it possible to create keyboard shortcuts for an application?
Thread Tools
Mac Enthusiast
Join Date: May 2008
Location: Thousand Oaks, CA
Status: Offline
Reply With Quote
Jan 7, 2010, 11:43 AM
 
I have a hearing disability and use subtitles frequently while watching DVDs on my Mac. I would like to be able to turn the subtitles on and off with a keyboard shortcut (something like command-option-s). Is there a way to set this up?

I found some instructions through google, but they seem outdated and don't seem to work. Then again, it involves Applescript stuff, which I'm not at all familiar with, so I could have done something wrong.

I've always been able to do this with the closed captioning, but some discs don't have closed captioning. Also, I am not 100% deaf and thus I prefer the subtitles since they do not tell me things like "robust uplifting musical theme playing," which I find somewhat silly and distracting.

Thank you for any help!
10.7.1 on Mac Pro 8x2.8
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jan 7, 2010, 11:54 AM
 
In SL, you can set your own shortcuts in Preferences - Keyboard - Keyboard Shortcuts.

You need to enter the item's Menu Name exactly as it appears in the menu.

-t
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jan 7, 2010, 11:55 AM
 
You don't mention which OS you use, but in Snow Leopard it's like this: Go to System Preferences -> Keyboard -> the Shortcut tab (or whetever the last one is called in English). Under the two lists, there is a + and - button. Push +. In the dialog box that comes up, select DVD-player in the menu (it says "All programs" by default). Enter the text of the exact menu command you use to enable subtitles - don't bother that it's in a submenu - and then the shortcut you'd like for it.
The low-end Mac Pro is the most overpriced Mac since the IIvx
     
Mac Enthusiast
Join Date: May 2008
Location: Thousand Oaks, CA
Status: Offline
Reply With Quote
Jan 7, 2010, 12:13 PM
 
Got it. This is awesome. Thanks!!
10.7.1 on Mac Pro 8x2.8
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 7, 2010, 12:14 PM
 
That existed long before Snow Leopard. It was introduced in either Panther or Tiger — I can't remember which. It's in more or less the same place in every version, too.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: May 2008
Location: Thousand Oaks, CA
Status: Offline
Reply With Quote
Jan 7, 2010, 05:31 PM
 
Well after setting this up I've been able to test the results on a few different DVDs today. Everything works as it should except it seems different DVDs have different names for their subtitle "tracks." For example, one DVD says "English 1" and another says "English 1 (Captioned)". Since the menu to select your subtitle simply uses the name of the subtitle track from the DVD, I'm trying to anticipate what each DVD may call its English subtitle track.

Anyway, just wanted to say thank you again for the help.
10.7.1 on Mac Pro 8x2.8
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
Jan 7, 2010, 05:38 PM
 
Originally Posted by turtle777 View Post
In SL, you can set your own shortcuts in Preferences - Keyboard - Keyboard Shortcuts.

You need to enter the item's Menu Name exactly as it appears in the menu.

-t
This is actually something I’ve been wondering about. I’ve wanted that functionality for a while, but could never get it to work. I guess my mistake was assuming that I had to include the menu name, too (since sometimes different sub-menu items can have identical names).
     
Fresh-Faced Recruit
Join Date: Jan 2010
Status: Offline
Reply With Quote
Jan 12, 2010, 05:00 PM
 
Specifically in iTunes the Ratings menu under File has graphical 'star' values. Any hope for those, does anyone know?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jan 12, 2010, 05:10 PM
 
Copy and paste this into the "Menu Title" field the appropriate number of times for each star value: ★
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: May 2008
Location: Thousand Oaks, CA
Status: Offline
Reply With Quote
Feb 6, 2010, 04:02 PM
 
I am experiencing a problem in regards to my original issue. Although I have many shortcuts setup for my subtitle tracks, on many of my DVDs the name of the subtitle matches the name of the audio track. Since the menu name for each is simply the track's title, any attempt to turn on subtitles via my preset keystroke shortcut results only in the English audio track being selected.

This is fine, I suppose, so long as I can get it to select the subtitles as well.

So, when two separate items have the exact menu name within an application, how do I get the Keyboard Shortcuts to differentiate betweent he two or at least select both and not just one of them??
10.7.1 on Mac Pro 8x2.8
     
Mac Enthusiast
Join Date: May 2008
Location: Thousand Oaks, CA
Status: Offline
Reply With Quote
Feb 20, 2010, 12:36 PM
 
Just a friendly bump to see if anyone has ideas ideas here..
10.7.1 on Mac Pro 8x2.8
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Feb 21, 2010, 11:05 AM
 
The best I can do is Applescript, where you can write something like

tell application "System Events"
tell process "DVD player"
click menu item 1 of menu 2 of menu bar item 3 of menu bar 1
end tell
end tell

Or more likely, record yourself doing that. Hooking that script up to a button would then require a thirdparty app.
The low-end Mac Pro is the most overpriced Mac since the IIvx
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:46 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2