A small collection of command line tools that I’ve developed for Mac OS X over the years, à la NextStep/Mac OS X’s open, pbcopy, pbpaste, etc. These are mostly bash scripts as an exercise in honing my bash-fu.

  • clipcat prints and concatenates Mac OS Text Clippings. Submitted by David Kendal (
  • eject ejects a volume and all other volumes on the same disk. A simpler, shorter wrapper of `diskutil`‘s various eject/unmount options and allows specifying either a full path in /Volumes or just the volume name.
  • swuser switches users using Mac OS X’s Fast User Switching feature. You can either switch out to the login window or to another user. Note: unfortunately, this is not currently compatible with screen.
  • trash allows trashing of files instead of tempting fate with rm. Correctly handles trashing files on other volumes, can list trash contents w/disk usage summary, and empty trash w/confirmation.

Released under the MIT license. Source code available at

Current Release:

tools-osx-2011-06-02.tar.bz2 – 2011-06-02

Previous Release(s):

tools-osx-2011-02-25.tar.bz2 – 2011-02-25
tools-osx-2010-12-08.tar.bz2 – 2010-12-08
tools-osx-2010-10-26.tar.bz2 – 2010-10-26

Commenting is closed for this article.