Bug in "Clone Variant" command

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

Bug in "Clone Variant" command

Postby Eric Nepean » Sun Jun 23, 2019 7:15 pm

FYI All Developers
I have discovered and submitted the following bug in CO to Phase One
Regarding the Applescript command: Clone Variant additive select true
Problem: If the selection is empty, the clone is not added to the selection.

Steps to reproduce:

Open an album or a smart album. select one or more variants
Run this script:
Code: Select all
tell application "Capture One 12"
   set thevariant to (first variant whose selected is true)
   deselect current document variants (variants)
   clone variant thevariant with additive select
end tell

Outcome: A clone is generated. Nothing is selected.
Expected Outcome: A clone is generated, the clone is selected.
Eric Nepean
Posts: 663
Joined: Sat Oct 25, 2014 8:02 am
Location: Ottawa

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest