Another CO11 Applescript Bug

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

Another CO11 Applescript Bug

Postby Eric Nepean » Sat Mar 03, 2018 11:54 pm

If you run an Applescript from Script Editor that executes any of the Applescripts below, then you will get correct behaviour, and current_doc_kind_s will be "catalog" or "session"

But if the same code executes while running the Applescript an application from Capture One 11 then you will get unexpected results:
"«constant ****COct»" instead of "catalog" and "«constant ****COsd»" instead of "session"

I will raise a ticket for this bug.

Code: Select all
tell application "Capture One 11"
    set currentDocRef to current document
    set current_doc_kind_s to (get kind of currentDocRef) as text
end tell
## or this
tell application "Capture One 11"
    set current_doc_kind_s to (get kind of current document) as text
end tell
## or this
tell application "Capture One 11" to set current_doc_kind_s to (get kind of current document) as text
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 98
Joined: Sat Oct 25, 2014 8:02 am

Return to Scripting



Who is online

Users browsing this forum: No registered users and 5 guests