adding albums

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

adding albums

Postby rapdigital » Fri Mar 03, 2017 10:27 pm

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....?
rapdigital
Certified Professional
Certified Professional
 
Posts: 146
Joined: Mon Feb 02, 2009 1:52 pm

Re: adding albums

Postby rapdigital » Sat Mar 04, 2017 1:08 am

Code: Select all
   tell document 1 to set newCol to make new collection with properties {name:"selected2", kind:album}


Now how to add an image to the collection
rapdigital
Certified Professional
Certified Professional
 
Posts: 146
Joined: Mon Feb 02, 2009 1:52 pm

Re: adding albums

Postby Ernesto J. » Mon Mar 06, 2017 7:41 pm

Favorites need an actual folder to reference. Name is the name of the reference, so not needed.

Code: Select all
tell application "Capture One 10"
   set thedoc to document 1
   set thefile to POSIX file "/Users/Shared/test/Capture"
      tell thedoc
         set thecoll to make new collection with properties {kind:favorite, file:thefile}
      end tell
end tell
Ernesto J.
 
Posts: 9
Joined: Mon Jul 11, 2016 4:28 pm


Return to Scripting



Who is online

Users browsing this forum: No registered users and 1 guest