When I got a digital camera, I found that the integration between the camera and iPhoto wasn't quite as tight as it was between my iPod and iTunes. iTunes automatically syncs and unmounts my iPod, whereas I have to click the "Import" button in iPhoto, and confirm that I want to delete the original images on the camera. Additionally, the camera isn't automatically ejected, so when it powers off after a couple minutes of inactivity, the Finder gives the standard error about a disk being impropertly ejected. Here's a script I put together that imports, deletes, and ejects without any user intervention required.
To work, this script requires Panther with Folder Actions and GUI Scripting enabled. To turn on, click "Enable access for assistive devices" in the Universal Access preference pane. Place the script in Library -> Scripts -> Folder Action Scripts and enable it as a Folder action for /Volumes (you can get to /Volumes by using "Go to Folder" from the Finder's Go menu). This script takes some hints from Apple's GUI Scripting example page, and Apple's Folder Action Scripting example page.
[robg adds: I haven't tested the script, but one caution -- if you automatically delete images from your camera before verifying they imported correctly, you're taking a bit of a risk. If there was an import problem, then your images are gone forever. For that reason, I use a manual import, and never tell iPhoto to delete the images when done.]
To work, this script requires Panther with Folder Actions and GUI Scripting enabled. To turn on, click "Enable access for assistive devices" in the Universal Access preference pane. Place the script in Library -> Scripts -> Folder Action Scripts and enable it as a Folder action for /Volumes (you can get to /Volumes by using "Go to Folder" from the Finder's Go menu). This script takes some hints from Apple's GUI Scripting example page, and Apple's Folder Action Scripting example page.
[robg adds: I haven't tested the script, but one caution -- if you automatically delete images from your camera before verifying they imported correctly, you're taking a bit of a risk. If there was an import problem, then your images are gone forever. For that reason, I use a manual import, and never tell iPhoto to delete the images when done.]
•
[6,111 views]

