Aperture AppleScript – Clean Deleted Images Folders v3 06
Clean Deleted Images Folders v3 06
Current version: v2 02
Built on: Aperture 1.5.2
Just like any responsible Aperture user, I use Vaults. I also use the Shoot->Library->Referenced workflow and discovered that there were some odd (and large) folders on the drives that house my Vaults. These folders seemed to contain images that already exist elsewhere- usually in the folder that houses all of my referenced masters.
I did a little detective work and here is what I learned.
In a nutshell, any image that was in the Library when it was backed up to a Vault once and then not in the Library on a subsequent update (ie should be deleted from the Vault) is moved to that Vault’s deleted items folder. Items can be removed from the Library in a few ways but the 2 that I’ve seen are:
- Image in Library is deleted
- Image is imported into Library and migrated to Referenced status (and thus no longer in the Library and no longer backed up via Vaults)
My AppleScript (below) asks for a folder that contains all referenced masters (which is what I do…) and trawls every mounted volume for Vault deleted items and checks to see if the images in those folders are, indeed, in the referenced master folder hierarchy somewhere. If they are then the image is deleted otherwise they are left alone.
As usual, this script does exactly what I want but probably not what anyone else wants so feel free to customize:
Clean Deleted Images Folder v3 06.scpt.zip
