Renaming
Fraser Speirs Shares His Workflow
2008-01-07
Fraser Speirs (of FlickrExport fame) shares his Aperture workflow:
He also has a more recent blog entry entitled When I Delete a Photo (almost never, basically). I have a different philosophy: I reject many photos and delete all the rejects about once a month.Someone asked me recently about how I work through my photographs after I shoot. When I go out to photograph, I shoot a lot - most people I go out with are usually surprised at the number of frames I produce. It’s not uncommon for me to take the kids to the park and come home with 150-300 images.I find that I can usually edit down 350 images to around 50 in 40-60 minutes and I thought I would share how I go about this.
|
Aperture Plugin: Generating The Random Name and Renaming Images
2007-03-16

Now I am able to generate the random string I can rename the images after they have been exported. So for each image file I do this:

To get the image UUID, depending on the API version I call either a method that gets the image properties with or without the thumbnail. I don't need the thumbnail, so I prefer to use the one that uses least memory. To determine which API to use, I add this code to the -initiWithAPIManager method:

To generate the random string I either use the salt string or not, depending on whether the checkbox is set. Then the random string is combined with the other parts of the name and used for the rename (achieved with the movePath:toPath:handler method). I add hyphens to the name in the code above for debug purposes. In real life the format string will drop the hyphens.
This code is not very memory-friendly. Each time around the loop will allocate more memory, so I need to refactor it with better memory use.
There. Finally making random file names!
The other parts of this series can be found via the Cocoa page.
The Bagelturf site welcomes Donations of any size