Bookmark Blogger for Safari by l.m.orchard http://www.decafbad.com --------------------------------------------------------------------------- Introduction --------------------------------------------------------------------------- This is a simpleminded hack for Safari users on OS X that digs into the Bookmarks.plist file in search of new bookmarks to harvest and compose into a blog entry for consumption by a Blosxom-like weblog. Since I migrated my blog to use Blosxom, I use this to make quick blogging from links dragged onto a toolbar bookmarks folder. --------------------------------------------------------------------------- Installation --------------------------------------------------------------------------- Run install.sh, or do the following: * In your home directory, create the following directory if necessary: ~/Library/Application Support/BookmarkBlogger/ * Copy or move the templates/ directory to ~/Library/Application Support/BookmarkBlogger/ * Copy or move the BookmarkBlogger.properties file to ~/Library/Application Support/BookmarkBlogger/ Configuration properties are, by default, read from ~/Library/Application Support/BookmarkBlogger/BookmarkBlogger.properties. Edit this file to set the following keys: * verbose - Use 0 for quiet operation, and 1 for informative/debug output. Default: 0 * bookmarksFolder - Name of the bookmark folder in Safari in which to seek bookmarks Default: Bookmark Blog * blogDir - Directory in which to place Blosxom blog entries Default: ~/bookmark-blog * templateDir - Directory in which to find templates. Default: ~/Library/BookmarkBlogger/templates * seenFile - File of hashes tracking bookmarks already seen. Default: ~/Library/BookmarkBlogger/seen.txt * bookmarksFile - .plist file where Safari's bookmarks are stored. Default: ~/Library/Safari/Bookmarks.plist --------------------------------------------------------------------------- Usage --------------------------------------------------------------------------- java -jar BookmarkBlogger.jar {optional.properties} The only argument this program takes is the path to an alternate configuration properties file. Running this program should result in a new single entry in the Blosxom category whose filename is based on the current time, listing all new links added to the bookmarks folder since the last time the command was run. ShareAndEnjoy!