Scripts
These are the scripts I use to publish my photo library. I run them on Mac
OS X with the dveloper kit installed. The require Bash and Perl. You
run them from the terminal application.
The process
- I have a publish directory where I keep all my scripts.
- In my publish directory, I have a file called "old_atom.xml", which I
created containing one line of text: "</feed>"
- I signed up for documentroot. I've used them before, so I didn't
try haloscan.
- You will want to modify comm.pl so the link
"http://www.documentroot.com/ccount.html?b=5692" has your documentroot id
number and not mine (5692)
- You will want to modify the scp commands in do-pub and in pub-no-feed
to point to your server and not mine
- I have a sub-directory of my publish directory called "pics" where I have
created my index.html, by hand using HTML-editting software
- I create smart albums organized by date in iPhoto
- I export the album as web pages from iPhoto, saving it to a subdirectory
of pics.
- I find the number of the first new photo by finding the photo in the album
that I just published and clicking on edit mode for that photo. The number is
on the lower left, below the image. "#x of y photos". You want the x.
- I run do-pub, from the publish directory with three arguments. The first
argument is the same of the subdirectory of pics where I exported the photos.
The second is the number I found in the previous step. The third optional
argument is the string to use for the update announcement feed. Unfortunately,
spaces have to be escaped.
- Periodically, I delete old entries from old_atom.xml. The scripts don't
do this automatically thus far.
- If, for some reason, I want to publish photos without updating my feed,
instead of do-pub, I run pub-no-feed with the same arguments
The Scripts and data files
Other Information
These scripts are provided as-is with no warranty, etc. Insert boilerplate
disclaimers here. Feel free to copy them or distribute them under the GPL
or copyleft of your choice. Attribution is nice but not ncessary.
I'm posting these because I like XML and Vince seemed interested. They're
kind of a mess.