Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'now for Camino' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
now for Camino
Authored by: mici on Oct 11, '05 03:15:18PM

thanks! i tried to recreate the same for my browser of choice, Camino. though it's a mess (and i'm not sed & awk guru, apparently) because i had to format the lines and strip some junk from Camino's XML bookmark file first. other than that, the premise and functionality is same, just copy it from below, it should preserve the lines, et al. please, i encourage you to help smoothening out my trial-and-error-style coding...


#!/bin/sh

rm -rf ~/Library/Caches/Metadata/Camino
mkdir ~/Library/Caches/Metadata/Camino

cat ~/Library/Application\ Support/Camino/bookmarks.xml | sed '{s/<bookmark/\
<bookmark/g;s/<\/folder>//g;s/<folder [^>]*>//g;s/<\/bookmarks>//;}' | grep '<bookmark name="' | awk '{ print "cat <<'"'"'END_BOOKMARK'"'"'>~/Library/Caches/Metadata/Camino/`uuidgen`.webbookmark\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n<key>Name</key><string>" $0 "\nEND_BOOKMARK"}' | sed '{s/<bookmark name="//g;s/" href="/<\/string>\
<key>URL<\/key><string>/g;s/"\/>/<\/string>\
<\/dict><\/plist>/g;}' | sh

plutil -convert binary1 ~/Library/Caches/Metadata/Camino/*.webbookmark


[ Reply to This | # ]