Mac OS X Panther Hacks by Rael Dornfest, James Duncan Davidson This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated February 11, 2005. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: Please include the attached Dedication page in the next reprint of Mac OS X Panther Hacks: "For Ralph Weisner, citizen engineer and consummate tinkerer" (45) 3rd full paragraph; SideTrack is shareware not freeware. [74] Code on that page and the next; Amazon has changed their Wish List HTML, so the screen scraping wasn't working properly. Below is an updated version: (* Find Wish Lists in Address Book The script loops through people in your Address Book, checking Amazon to see if they have a Wish List. If their Wish List is found, you have the option to view it in your default browser. by Paul Bausch *) -- set some variables for the curl command set userAgent to "Mozilla/5.0 (Macintosh; U; PPC Mac OSX; en-us)" set curlCommand to "curl -i -b -A -L \"" & userAgent & "\" " -- open Address Book and loop through people tell application "Address Book" repeat with thisPerson in the people set thisName to name of thisPerson repeat with thisAddress in email of thisPerson set thisEmail to value of thisAddress -- build the URL that will search for the Wish List set baseURL to "http://www.amazon.com/gp/registry/search.html" set thisURL to baseURL & "/?type=wishlist\\&field-name=" & thisEmail -- use curl to fetch the search page -- display dialog thisURL -- quit set thisWishPage to do shell script curlCommand & thisURL -- if the Wish List URL is found in headers, prompt user for action if thisWishPage contains "&id=" then set theAction to display dialog thisName & " has an Amazon wishlist." buttons {"View", "Ignore"} if button returned of theAction is "View" then -- build Wish List URL based on ID, and bring up set beginID to (offset of "&id=" in thisWishPage) + 4 set thisWishID to get text beginID thru (beginID + 16) of thisWishPage set beginID to 1 set endID to (offset of return in thisWishID) - 1 set thisWishID to get text beginID thru endID of thisWishID tell me to open location "http://www.amazon.com/o/registry/" & thisWishID end if end if end repeat end repeat end tell {169} figure 3-12; Figure 3-12 is the same as 3-11. It should be this - http://examples.oreilly.com/9780596007188/pithhelmet_add_rule.png {433} first command and second command; the command has the user edit files in /etc/inetd.conf/, but inetd.conf is a file, not a directory. Also, the file for secure pop3 should be pop3s, not pops. The commands should be: $ sudo pico /etc/xinetd.d/imaps and $ sudo pico /etc/xinetd.d/pop3s And the last command should be: $ sudo /sbin/services pop3s start (545) last paragraph; ...the second involves manuplating a BSD configuration... should be: ...the second involves manipulating a BSD configuration...