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
__________________
Because I'm a smartass.
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 G4
 
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

Posting 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

Forum Jump


All times are GMT -5. The time now is 07:08 PM.

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

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