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


Click here to return to the 'Thanks for the tips, folks.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Thanks for the tips, folks.
Authored by: genericuser on Sep 01, '05 11:22:36PM

I made the suggested changes to the script & instructions.


Person who said I should submit to Buzilla -- no thanks, I'd rather just show the Firefox community what a dirty hack I'm resorting to, in hopes that it shows demand for a more ideal solution.

Person who said this would be better implemented as a Firefox plugin -- you're absolutely right. But, a shell script was the quickest path to a working solution for me, so that's what I did. Maybe I'll make a stab at writing a plugin but I'm hoping someone else beats me to it!



[ Reply to This | # ]
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 | # ]