Aug 162012
 

Following up my previous post I also want to see the contents of any text file in preview without opening an editor.

I found this page with lots of quicklook plugins: QLPlugins.com. One of the plugins there is QLStephen. Download it, mount it, then open Terminal and run:

 

sudo cp -R /Volumes/QLStephen_1/QLStephen.qlgenerator /Library/QuickLook/

qlmanage -r

 

Result: Manifest.MF is now previewed in Finder and I don’t need to open a text editor anymore.

Popularity: 7% [?]

Tags: , , , , ,
Aug 162012
 

It happens quite regularly that I need to extract a JAR or WAR file for a brief inspection. Of course I can do it on command line however, when operating in Finder I wanted to get something that just unarchives a selected file by mouse click. 

To achieve this I used for the very first time Automator, a tool I didn’t really think would be providing a solution to any of my needs. What I did do:

  • Open Automator
  • New > Service
  • In the drop down menus choose in Service receives selected files or folders in Finder.app
  • In Actions search for Run Shell Script and double click on it
    • enter this as command line unzip -n “$1″ -d “$1″.zip
    • select for Pass input as arguments
  • Click on Save and give a name, e.g. Extract Archive

To verify:

  • Open Finder
  • Right click any archive
  • In the context menu select Services > Extract Archive

Note: As a filetype cannot be selected the menu is available for all files and folders. If you select something that is not a extractable with unzip you’ll see an error message.

Popularity: 3% [?]

Tags: , , , ,