Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When double clicking a bundle folder (folder called *.bundle), a Terminal window opens as expected. However,

$ open .

does not then open a Finder window but another Terminal.

Is there a way to tell the open command to explicitly use the Finder as app?

share|improve this question
    
Theoretically, there is a option to do this: "$ open . -a [application]". That doesn't work with simply typing "Finder"/"finder", though. –  basszwo Aug 12 '13 at 17:55
    
Should be possible with AppleScript's tell application "Finder" to open folder …, but I'm not sure on the details – not on a Mac right now. –  slhck Aug 12 '13 at 18:40

1 Answer 1

up vote 1 down vote accepted

You can use open -R to reveal the bundle directory in Finder:

open -R .

It selects the bundle directory but doesn't show the package contents. This shows the package contents in list view and icon view but not in column view:

osascript -e 'tell application "Finder"' -e reopen -e 'set target of Finder window 1 to POSIX file (system attribute "PWD")' -e activate -e end

share|improve this answer
    
Cool, have just set up my 37signals/sub to do that for me –  basszwo Aug 31 '13 at 19:54

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.