What is the best way to make Calculate SHA1 as a context menu option in Mac OS X?

Posted by Andrei on Super User See other posts from Super User or by Andrei
Published on 2010-05-09T15:22:10Z Indexed on 2010/05/11 19:34 UTC
Read the original article Hit count: 203

In order to calculate the SHA1 checksum of a downloaded file, I could type

/usr/bin/openssl sha1

in Terminal and then drag there the file which I want check. To make it simpler, one could enable a Context Menu item for this action.

What is the best way to create such item in Mac OS X 10.6? A detailed answer is appreciated, because I don't have good experience with AppleScript, etc.


Step by step

  1. Open Automator
  2. Create new service
  3. Choose to receive selected Files and Folders in Finder
  4. Add action Run Shell Script where your bash command is /usr/bin/openssl sha1 "$@" and you pass input as arguments

How can I get the output? Preferably in a Growl pop-up or a message window/dialog.

© Super User or respective owner

Related posts about osx

Related posts about automator