move
New Applescript commands in 2.0.1
Mar 03, 2008 @ 05:35 PM - Filed in:
New to Aperture
| News
Aperture 2.0.1 was released earlier today.
I noticed Apple has added three new commands to Aperture's Applescript dictionary: duplicate, move, and reveal.
reveal
Looks like this command will "reveal" an image version found in the library. Why would you ever want to use such a command? Check out an example on Apple's Applescript page and you'll know. By the way, this is gotta be my favorite feature in the entire application because of the power and time savings it creates. That page also has a pretty good video demo of the feature; check out the page just to watch the demo.
Here's a sample script to get you started:
tell application "Aperture"
tell library 1
tell project 1
set image_count to count of every image version
repeat with i from 1 to image_count
reveal image version i
delay 1
end repeat
end tell
end tell
end tell
I placed the delay command in there so the script doesn't fly through all the image versions. You can change the amount it delays (in seconds) to fit your needs. And of course you can also reveal an image version by name.
duplicate
Although this command is basically already provided to Applescript, it now does something in Aperture. What? It allows you to duplicate an image version from one container to another. Say you need a copy of a master in project 1 as well as in project 2. Looks like it works copying versions to albums as well. Here's how you do it:
tell application "Aperture"
tell library 1
duplicate image version 1 of project "project1" to project "project2"
end tell
end tell
move
Similar to the duplicate command, this command will allow you to move an image version to another project. I don't believe it works moving to an album. That seems right as you can't move versions to albums, you must copy them to albums.
tell application "Aperture"
tell library 1
move image version 1 of project "project1" to project "project2"
end tell
end tell
I noticed Apple has added three new commands to Aperture's Applescript dictionary: duplicate, move, and reveal.
reveal
Looks like this command will "reveal" an image version found in the library. Why would you ever want to use such a command? Check out an example on Apple's Applescript page and you'll know. By the way, this is gotta be my favorite feature in the entire application because of the power and time savings it creates. That page also has a pretty good video demo of the feature; check out the page just to watch the demo.
Here's a sample script to get you started:
tell application "Aperture"
tell library 1
tell project 1
set image_count to count of every image version
repeat with i from 1 to image_count
reveal image version i
delay 1
end repeat
end tell
end tell
end tell
I placed the delay command in there so the script doesn't fly through all the image versions. You can change the amount it delays (in seconds) to fit your needs. And of course you can also reveal an image version by name.
duplicate
Although this command is basically already provided to Applescript, it now does something in Aperture. What? It allows you to duplicate an image version from one container to another. Say you need a copy of a master in project 1 as well as in project 2. Looks like it works copying versions to albums as well. Here's how you do it:
tell application "Aperture"
tell library 1
duplicate image version 1 of project "project1" to project "project2"
end tell
end tell
move
Similar to the duplicate command, this command will allow you to move an image version to another project. I don't believe it works moving to an album. That seems right as you can't move versions to albums, you must copy them to albums.
tell application "Aperture"
tell library 1
move image version 1 of project "project1" to project "project2"
end tell
end tell
