Checking session open/selecting variants via AppleScript
I'm trying to put together a script so that after processing an image from C1, I can go back to a particular image in a session and reopen it in C1 without having to find the session, open it, scroll to the image, etc. It's easy enough to open up a given image in a session via AppleScript with something like this:
tell application "Capture One"
set imglist to name of every image
if (count imglist) = 0 then
open "/Users/martin/Pictures/Holden2014/Holden2014.cosessiondb"
delay 0.2
end if
open "/Users/martin/Pictures/Holden2014/_MG_3270.CR2"
end tell
but there are two issues:
1. Is there a way to check if a given session is open in C1 and select it (without going to UI Scripting)? C1 doesn't seem to implement the standard AppleScript window/document objects.
2. Is there a way to open a variant by ID? This script works fine to open the original _MG_3270.CR2, but if I have, say, three that I'm working with because I'm processing for three different colour balance settings (for instance), it would be great to be able to select the second of three variants.
tell application "Capture One"
set imglist to name of every image
if (count imglist) = 0 then
open "/Users/martin/Pictures/Holden2014/Holden2014.cosessiondb"
delay 0.2
end if
open "/Users/martin/Pictures/Holden2014/_MG_3270.CR2"
end tell
but there are two issues:
1. Is there a way to check if a given session is open in C1 and select it (without going to UI Scripting)? C1 doesn't seem to implement the standard AppleScript window/document objects.
2. Is there a way to open a variant by ID? This script works fine to open the original _MG_3270.CR2, but if I have, say, three that I'm working with because I'm processing for three different colour balance settings (for instance), it would be great to be able to select the second of three variants.
0
Post is closed for comments.
Comments
0 comments