#!/bin/bash
#===============================================================================
#
#          FILE:  checkbookmarks.sh
# 
#         USAGE:  ./checkbookmarks.sh 
# 
#   DESCRIPTION:  
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR:  John Ryland (jryland@xiaofrog.com)
#       COMPANY:  InvertedLogic
#       VERSION:  1.0
#       CREATED:  06/21/08 12:39:19 CST
#      REVISION:  ---
#===============================================================================

plutil -convert xml1  -o /tmp/.safari_bookmarks.xml ~/Library/Safari/Bookmarks.plist

# need to convert the xml to html for the purposes of wget to understand it

wget --spider --force-html -i /tmp/.safari_bookmarks.xml
#wget --spider --force-html -i bookmarks.html


