Take the 2-minute tour ×
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
add comment

3 Answers

up vote 16 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
    
Then it is OSX ≥ Windows, no? ;P (I couldn't help it…) –  Adam L. S. Sep 16 '13 at 17:20
    
Sorry for double comments, but this solution isn't working for me. (OS X 10.8) I think that this solution only works if it can be found in the menu. –  Adam L. S. Sep 16 '13 at 17:25
    
(On OS X Lion 10.8.5) I do not have the "Show Package Contents" item menu in my Finder's Finder menu. I could add one shortcut after adding the action item in the toolbar. So right-click on the toolbar, select "Customize toolbar...", add the "action" item to the toolbar, then System Preferences -> Keyboard -> Keyboard shortcuts to assign the keyboard shortcut you want. HTH –  politicus Nov 24 '13 at 16:13
add comment

Under snow leopard, I found the simplest way was to use SAVE A COPY as iwork 08. then right click to and the show package content option will be available.

share|improve this answer
    
This does no answer the users question. They want to show package contents using a keyboard command, not using iWork '08. That relies on proprietary software that is now 5 years old. –  Danijel J Mar 1 at 3:27
add comment

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
add comment

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.