How to make KEXT files open with Finder I frequently edit files inside of kernel extension (.KEXT) files on OS X.  To do this, I have to right-click and "Show Package Contents".  To save time, I would like to simply double-click the package and have it open with Finder.
Ideally, Finder would show the full folder hierarchy in column view.  Currently, when I show the package contents, the folder hierarchy is "reset" with the package as root.  As you can see in this screenshot, there is no horizontal scrollbar, so I can't quickly traverse up the hierarchy as I could in a normal directory tree.  I'm working in Sierra, but this question could apply to any recent version of OS X.
Create an Automator Service using the setting in the image below.



Then assign it a keyboard shortcut in: System Preferences > Keyboard > Shortcuts > Services

I assigned it: optioncommandK

Code for Run Shell Script:

for f in "$@"
do
    fn="$(basename "$f")"
    ext="${fn##*.}"
    if [[ $ext == kext ]]; then
        open "$f/Contents"
    fi
done