Feb 022005
Merging two old photo libraries (one that constantly made iPhoto crash that worked well when upgraded to iPhoto 5 with other old ones that I used to make iPhoto 2 quicker) I came across Cleaning iPhoto and Mac::Glue. So a quick:
perl -MCPAN -e 'install "Mac::Glue"'
gluemac /Applications/iPhoto.app
and off I was using his scripts to compare MD5 hashes. I’ll be using Mac::Glue to do the same cleaning up for iTunes where my duplicate count is getting higher quickly.
And in case you’re one of my friends who know I don’t like perl, I still don’t. But the alternative was AppleScript







Get it here
How can you not “like Perl”?
The real power of Mac::Glue is the access it gives you to some very powerful Perl modules that allow you to do stuff like encryption and decryption and other complex text operations that are virtually impossible in Applescript.
Cheers
P
OSX 10.6 ships with Perl 5.10.0 which is set up to run in 64 bit mode. This breaks a few things required by Mac::Glue. The solution is to force Perl to run in 32 bit mode.
Just issue this from Terminal:
defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes
and everything works again.
Cheers
P