Terminal is getting less socially awkward

Terminal has always been this cool kid, but a bit awkward socially. I bet it’s because he’s just shy. Let’s ease up on him, because today he has decided to talk a little with his closest friend: Finder.

Of all the toys he has, he is ok to share files he is playing with.

To ask him to do that, just type the following command:

$ showinfinder aFile

and the Finder will reveal it.

You can even ask him to show multiple files at once:

$ showinfinder aFile anOtherFile aLastFile

It works with absolute and relative file paths.

Once you get started on this playground, it can become really cool. For example, if you want to show in Finder all the png files you have on your Desktop, do this:

$ showinfinder ~/Desktop/*.png

 

 

Code source and binary file are on GitHub: showinfinder.

 
 
2 Comments. Leave a comment or send a Trackback.
  1. #1 • Axel Roest said on February 24 2012:
     

    So, this is a wrap around the standard ‘open’ command, is it not? I always just open the enclosing folder …

  2. #2 • Guillaume said on February 24 2012:
     

    @Axel : Yes, it is nothing more than a wrapper.

    Sometimes, opening the enclosing folder is not really practical. In /usr/bin, on my machine, there is 1 116 commands. Scrolling to find the one you are looking for is not my definition of fun.

    When using the showinfinder command, the files are selected in the Finder, ready to be used or dragged & dropped.

 

Comment: