Export command and selection property
I recently received an email from a
visitor wondering why his export script produced an error when
attempting to export a single image out of Aperture.
From his email I realized I omitted a few valuable simple scripts from my collection of sample scripts that would have helped him answer several of his questions. Therefore I'm happy he emailed me as his feedback helps to improve this site.
I failed to have a simple selection script and a very simplistic export script. Both scripts have been added to the site. The selection script can be found at the bottom of the Basics page. And the new export script can be found at the top of the Exporting page.
One other thing I failed to mention about exporting images is the export command only handles lists of image versions. Attempting to export a single image will produce an error which was the root of the visitor's problem.
If your script generates an error but you feel everything should work, be sure to take a close look at the Applescript Dictionary for Aperture. The dictionary should provide all the necessary information to successfully use a command, class, or property. In this particular case the dictionary does state the export command exports a "List of image versions or projects to be exported." Overlooking something such as this is easy to do.
From his email I realized I omitted a few valuable simple scripts from my collection of sample scripts that would have helped him answer several of his questions. Therefore I'm happy he emailed me as his feedback helps to improve this site.
I failed to have a simple selection script and a very simplistic export script. Both scripts have been added to the site. The selection script can be found at the bottom of the Basics page. And the new export script can be found at the top of the Exporting page.
One other thing I failed to mention about exporting images is the export command only handles lists of image versions. Attempting to export a single image will produce an error which was the root of the visitor's problem.
If your script generates an error but you feel everything should work, be sure to take a close look at the Applescript Dictionary for Aperture. The dictionary should provide all the necessary information to successfully use a command, class, or property. In this particular case the dictionary does state the export command exports a "List of image versions or projects to be exported." Overlooking something such as this is easy to do.
