Cannot Set Export Recipe "Existing" Preference
In the Export Location tool we can set Existing Files to "Add Suffix", "Overwrite", or "Skip".
I can create a new export recipe via AppleScript. I am unable to set the "Existing Files" export attribute.
The AppleScript dictionary class def for recipe does not include this attribute. A search for "output", "export", "existing" in the dictionary provides no place where this might be set. Am I missing something?
-
I suspect someone forgot to add the properties after doing a new feature. Make a feature request I guess...
0 -
That's what I suspected. Thanks.
0 -
I'm working on an AppleScript that seems similar to what you are saying. I'm looping through session folders in an "outer folder," processing the selects according to a specific recipe, and storing the results in a session specific folder (which is elsewhere in my file system). I did not try to create a recipe object. Instead I looped through the repeated through the "recipes" element (which is a list of recipes in the document object) until I found the one with the right name, and set a reference to that recipe object. The repeat loop also set the "enabled" property to true for the desired recipe, and false for all the others. Using the reference, I set the property "root folder location" of the recipe to the path to the outer results folder, and "output sub folder" to string "Selects".
Then, you have to create a list of variants. First, repeat through the element "collections" of the document object to find the collection you want. A "collection" is a list of "image" objects, each of which has a list of "variant" objects (in the element "variants").
Finally
set jobId to process variantList with desiredRecipe
If successful, process returns a jobId that can be used to monitor job progress (I hope .. not done yet), or an error message that begins with "ERROR".
Hope that helps. It works for me. However, as I loop through sessions, I need to wait until the last job is done before starting the next session. Still working on that.
0 -
JSS .. your response seems unrelated to my Existing Files subject.
0
Post is closed for comments.
Comments
5 comments