This script will attempt to copy the bookmarklet code to your desktop clipboard using pbcopy if possible. A warning will be issued if it cannot regardless of the availablity of pbcopy, the bookmarklet code will be output.
make-bookmarklet < example.js
For other issues, contact the author.
Timothy Appnel <email@example.com>