
At times, it can be advantageous to see the contents of these packages, and you can do that by control-clicking on the package and choosing 'Show Package Contents' from the pop-up menu, or by selecting the package and clicking on the Action button in the Finder's toolbar and selecting 'Show Package Contents.' Enter my dilemma. As a long-time Mac user, whenever I need to navigate through the filesystem, I usually use keyboard shortcuts such as starting to type the name of the file/folder I want to navigate to or through. However, there is no keyboard shortcut to reveal the contents of packages, and since the command is not found in the Finder's menu bar, I can't easily create one through System Preferences.
The solution: Automator and AppleScript with GUI Scripting.
Requirements:
- Apple Script GUI Scripting must be enabled. Open the AppleScript Utility, located in /Applications -> AppleScript. Make sure the 'Enable GUI Scripting' check box is checked.
- The Action button must be on the toolbar of your Finder windows. (It's the button that has the picture of a gear.) If it's not, open a Finder window and choose View -> Customize Toolbar from the Finder menu, and drag the "gear" button up to the toolbar from the resulting dialog sheet.
- This Automator application [macosxhints mirror] I created.
- A program that you can use to configure a keyboard shortcut to launch the application. Since Butler is one of my favorite programs, I used it to set up Control-Command-O as a trigger that only works in the Finder, and runs the Automator program.
[robg adds: I use FolderGlance to drill into packages, but it's still not a hotkey-accessible solution. I tested the Automator app and it works as described.]