Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OSX 10.6. I got rid of dashboard shortcut, never used it. I use stickies a lot on my desktop. Can be a pain getting to it at times. Any idea how to map the F4 key to: hide all applications and only show stickies?

share|improve this question

migrated from Jan 22 '11 at 10:28

This question came from our site for professional and enthusiast programmers.

Press Cmd-Opt-H to hide all other applications.

You can use Automator to create a Service that activates Stickies and hides all other applications. Start Automator, create a Service that receives no input in any application and add the Run AppleScript action with the following code:

tell application "Stickies" to activate
tell application "System Events" to keystroke "h" using {command down, option down}

Save as "Show Only Stickies" and it will show up in any application's Application Menu » Services.

You might need to enable support for assistive devices in System Preferences » Universal Access for this to work.

Assign a keyboard shortcut to your Service in System Preferences » Keyboard » Keyboard Shortcuts » Services.

If this doesn't work (e.g. F4 doesn't work in that list), go to Application Shortcuts, add a new one for the menu item "Show Only Stickies", press F4 for the shortcut, and confirm. You need to switch applications for it to work.

share|improve this answer

Another Applescript:

tell app "System Events" to set visible of processes to false
activate app "Stickies"

You could also save separate scripts for hiding all applications, and opening for example Stickies.

share|improve this answer

You must log in to answer this question.