Skip to content

dafacto Posts

iPhoto Library Manager (Revisited)

For anyone interested, attached below (in the Extended Entry) is the script I run nightly from cron that informs me by email when my current iPhoto Library is getting big enough to consider taking an action with iPhoto Library Manager to create a new one.

A couple of notes:

(1) Yes, the script uses the CLI version of PHP. I’m much more familiar with the PHP language than I am with tools like Perl.

(2) The script uses the knowledge that I name my iPhoto Libraries according to the form “iPhoto-Library-20030521”, so that the last entry in a directory listing is the currently used Library (and the one whose size should be calculated).

(3) I’ve removed the PHP delimiters from the script example, to prevent execution when you view it (since my blog is parsed by PHP).

Shell Aliases

There’s a discussion going on at NSLog(); containing tips about shell aliases. I keep going back, so I thought I’d add it to my blog.