moving album from one collection to another
I want to move an album out of a project and into the group containing the project (and do a lot of such cases). No problem using the GUI, just drag the album out of the project into the group, but if I try to do that with a script, I get the error "Can't make or move that element into that container". Here's a stripped down script that fails (am I misusing the move command?):
tell application "Capture One 22"
move collection id "444" of collection id "443" of collection id "436" of document 1 to end of collection id "436" of document 1
end tell
-
Try this? Not sure you have to provide the full hierarchy of the collection you want to move.
tell application "Capture One 22"
tell current document
move collection id "444" to end of collection id "436"
end tell
end tell0 -
Thanks for your reply but no, it is necessary to provide the full hierarchy: collection id "444" (the album) is not in the collections of the document (the catalog), but rather is in the collections of collection id "443" (the project) which, in turn, is in the collections of collection "436" (the group). And it is this collection (the group) which is an element of the document's collections. So, if your suggestion is executed, an invalid reference will result (and I did try it to verify). I am quite sure that the references in my original post are correct and that the move command as written there conforms to the C1 AppleScript dictionary, so I think that either the move command doesn't work or the dictionary is mistaken in some way.
0
Post is closed for comments.
Comments
2 comments