Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Hardware > Desktops > iMac

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 27, 2012, 07:17 AM   #1
eroxx
macrumors 6502a
 
Join Date: Jul 2010
Question about keyboard shortcuts ..

What can I use to create a keyboard shortcut that will allow me to create a hotkey for something found in a contextual menu (right-click) ? Thanks!
eroxx is offline   0 Reply With Quote
Old Nov 27, 2012, 07:19 AM   #2
GoCubsGo
macrumors Nehalem
 
GoCubsGo's Avatar
 
Join Date: Feb 2005
Does this work at all?
http://lifehacker.com/343328/create-...in-any-program
GoCubsGo is offline   0 Reply With Quote
Old Nov 27, 2012, 09:53 AM   #3
eroxx
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
Thanks! It's helpful, but not for contextual (right-click) menus ...
eroxx is offline   0 Reply With Quote
Old Nov 27, 2012, 10:03 AM   #4
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by eroxx View Post
What can I use to create a keyboard shortcut that will allow me to create a hotkey for something found in a contextual menu (right-click) ? Thanks!
What, specifically, are you trying to make a keyboard shortcut for?
GGJstudios is offline   0 Reply With Quote
Old Nov 27, 2012, 10:50 AM   #5
eroxx
Thread Starter
macrumors 6502a
 
Join Date: Jul 2010
In dropbox/public, there is a contextual menu to right click a file and then copy the URL link to clipboard. It's THAT command that I want a hotkey for. Here's a screenshot:

http://dl.dropbox.com/u/10819485/Screenshots/0w.png
eroxx is offline   0 Reply With Quote
Old Nov 27, 2012, 10:51 AM   #6
Weaselboy
macrumors G5
 
Weaselboy's Avatar
 
Join Date: Jan 2005
Quote:
Originally Posted by eroxx View Post
What can I use to create a keyboard shortcut that will allow me to create a hotkey for something found in a contextual menu (right-click) ? Thanks!
I don't know of a way to directly access contextual menus, but for just about any contextual menu I can think of, that menu choice is just an alternative way to access a real menu choice in the app. For example in Safari I see Back/Reload Page/Open in Dashboard--Show page Source/Save Page As/Print Page when I right click. Every one of those commands can be accessed in the regular Safari menu.

So find the command you want in the app menus then make an Applescript to select that menu item. Then create a shortcut/hotkey to run the Applescript.

For example, here is an Applescript that will click the Reset Safari... menu choice. You can adapt this to any app and menu.


Code:
tell application "System Events"
	tell application process "Safari"
		click menu item "Reset Safari…" of menu "Safari" of menu bar 1
		try
			click button "Reset" of window 1
		end try
	end tell
end tell
Weaselboy is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Hardware > Desktops > iMac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Keyboard Shortcuts Stopped weegrim OS X Mavericks (10.9) 8 Mar 21, 2014 02:23 PM
iPhone: Keyboard Shortcuts adm.hpe iOS 6 8 Dec 11, 2012 03:18 PM
Problem with keyboard shortcuts sigooner iPhone 0 Oct 23, 2012 04:18 PM
Keyboard Shortcuts Sdreed91 iOS 6 13 Oct 22, 2012 09:59 AM
Assigning keyboard shortcuts on Apple Wired keyboard w/ numpad comatory Mac OS X 10.7 Lion 0 Aug 21, 2012 02:08 AM

Forum Jump

All times are GMT -5. The time now is 01:01 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC