Stairways Software Icon

Stairways Software

Excellence In Software For Over Ten Years – Only with a Mac

Open Default Window

When you switch to an application using the process switcher (either Apple’s or Keyboard Maestro’s) the default window will not re-open even if no windowsare open. So for example, if you’ve closed the all windows in Mail, and then switch to Mail, the Message Viewer will not be displayed. You need to click in the Mail Dock icon to or figure out which menu or command key to use (often command-0) to display the default window.

The Mac Observer folks asked me (discussed here) how to resolve this, and I suggested a simple AppleScript:

tell application "System Events"
 set f to file of first item of (processes whose frontmost is true)
 open f
end tell

Basically, it just finds the from application and asks the system to “open” it.

Use Keyboard Maestro to wire that script up to a command key (command-option-0 perhaps?) and you’re all set.

You can download this macro from the Macro Library.

Updated Thursday, July 1, 2010 at 3:38 AM. Permalink. 1 Comments.

Comments

If you're using the built in app switcher you can just hold alt/opt before letting go of cmd.

Posted Saturday, May 14, 2011 12:25 PM by Alex P.

Post Comment

Name: (optional)
URL: (optional)
Email: (optional, not published)
   
CAPTCHA: seven four six two (required)
  To prove you are human, please enter the number as digits (ie, 1-9).
Comment:
  You can use some HTML tags such as <b>, <i>, and <a href="">.
We reserve the right to remove any offensive or inappropriate comments.
Due to spam issues, comments are initially invisible until we review them,
you can see them (background red) and we can see them, but no one else.

Comment Preview

None yet.

Buy Now

User Database

Stairways