Archive your pasteboard using Flycut

I often find myself wishing that I could retrieve something that I had cut or copied earlier in the day, or maybe even longer ago than that. So I decided to make an archive of my pasteboard, and store it on Dropbox so I can easily retrieve something later.

There are lots of programs out there which will offer to save your pasteboard or do all sorts of complicated things with it. I was looking for something simple, and I found just what I wanted in Flycut, a free program based on an older app called Jumpcut which hasn't been updated since January 2009.

Configure Flycut

Flycut is available for free from the Mac App Store and requires OS X 10.6.6 or later. After downloading it, launch it and set the preferences as shown here:

You can set it to "Remember" anywhere from 10 to 99 entries, and display five to 99. Set those to whatever you like.

The most important part is to make sure that you choose "After each clip" for the "save" frequency. Everything else relies on that setting being correct.

Download and install a shell script

flycutmonitor.sh is a shell script which automatically saves your pasteboard to a file anytime the pasteboard changes.

Download it, make sure it is executable (chmod 755 flycutmonitor.sh) and move it to /usr/local/bin/flycutmonitor.sh.

By default, your clipboard will be saved to ~/Dropbox/TEMP/flycutmonitor.sh/. If you want to change that, edit the DIR= line in flycutmonitor.sh. The folder will be created if needed.

Also, if growlnotify is installed, the script will show the current clipboard via Growl whenever it changes. If you do not want Growl notifications, set GROWL=no in flycutmonitor.sh (look in the file, you'll see where to make the change).