Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know you can use +O to open a folder, however when you do that on an application it opens the application.

Is it possible to either make +O always show the contents or is there another shortcut for that?

share|improve this question

2 Answers

up vote 12 down vote accepted

I suggest that you create a custom shortcut in System Preferences → Keyboard → Keyboard Shortcuts.

This way you can open packages with as a modifier key.

  • +O to open folders
  • ++O to open packages

enter image description here

share|improve this answer
4  
Another Wow!, this is possibly the single smallest/tiny-but-awesome reasons why OSX > windows (most of the time anyway) – Jonathan. Mar 18 '12 at 21:51

If you want a single keystroke to open regular items and regular folders, but show package contents for packages (including Applications), you can turn to Automator.

Create a new Service in Automator.

The service receives files or folders in Finder.app.

The first action is Run AppleScript. Here is the script:

on run {input, parameters}
    set my_output to {}
    repeat with oneItem in input
        if package folder of (info for oneItem as alias) then
            try
                tell application "Finder" to open folder ((oneItem as text) & "Contents")
            end try
        else
            set my_output to my_output & oneItem
        end if
    end repeat
    if ((count my_output) is 0) then
        error number -128
    end if
    return my_output
end run

The second action is Open Finder Items

Save your service. I called mine BetterOpen.

Then, go to System Preferences » Keyboard » Keyboard Shortcuts » Services and assign a keystroke to the service. Unfortunately, I have not found a way to reclaim shortcuts already claimed by the Finder, so you may have to pick a keystroke other than O.

If you want to open the package in the same window, replace the line

 tell application "Finder" to open folder ((oneItem as text) & "Contents")

with

 tell application "Finder" to set target of window 1 to ((oneItem as text) & "Contents")
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.