Anyone managed to add a session favorite or album?
CODE: SELECT ALL
set newCol to make new collection of document 1 with properties {kind:album, name:"selected"}
just results in missing value error....?
repeat
tell application "Capture One 12" to tell ref2ResultProject
if not (exists collection named (get nameResultAlbum & coll_ctr)) then
set nameResultAlbum to (get nameResultAlbum & coll_ctr)
set ref2ResultAlbum to make new collection with properties {kind:album, name:nameResultAlbum}
exit repeat
else
set coll_ctr to coll_ctr + 1
end if
end tell
end repeat
tell application "Capture One 12" to tell document 1 to set ref2NewAlbum to make new collection with properties {kind:album, name:"selected"}
make v : Create a new object.
make
new type : The class of the new object.
[at location specifier] : The location at which to insert the object.
[with data any] : The initial contents of the object.
[with properties record] : The initial values for properties of the object.
→ specifier : The new object.
set ref2NewAlbum to make new collection with properties {kind:favorite, name:"selected", folder:someFolderRef}
set ref2NewAlbum to make new collection with properties at someFolderRef with properties {kind:favorite, name:"selected"}
Users browsing this forum: No registered users and 1 guest