Change Sort view via AppleScript?

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

Change Sort view via AppleScript?

Postby SeanMurp » Wed Oct 24, 2018 7:13 pm

Anyone know if it's possible to change the Sort View without using UI or key code calls? We are currently using key codes to press a keyboard shortcut for Sort by Rating and then Reverse the order. Would be great if we could do it via code. Nothing is sticking out to me in the dictionary. :?

I did just find the Available Filters code which helps us switch one key code to a script call but would be lovely to switch all of our key codes. For those that are curious here is how you can set the filter to all images with Red or Green color label:
Code: Select all
tell application "Capture One 11"
   tell current document
      set filters to {"Color Tag|Red", "Color Tag|Green"}
   end tell
end tell


To get a list of all available filters you can run this:
Code: Select all
tell application "Capture One 11"
   tell current document
      get available filters
   end tell
end tell
SeanMurp
 
Posts: 75
Joined: Wed Nov 02, 2016 4:30 am

Re: Change Sort view via AppleScript?

Postby ben_US » Wed Oct 24, 2018 8:20 pm

Not via AS to Capture One.
Please make a support case for Technical Support with Capture One software:
http://support.phaseone.com and click on Contact Support, then select Technical Support.
ben_US
Crew
Crew
 
Posts: 601
Joined: Mon Feb 01, 2016 9:51 pm
Location: New York, USA

Re: Change Sort view via AppleScript?

Postby SeanMurp » Wed Oct 24, 2018 9:23 pm

Ok, thanks Ben. That would definitely be a feature request for us. Our digitechs use a script on each look that filters by green label and then sorts by rating and then reverse the order. Would be great if we could code that without the key commands/keyboard shortcuts.
SeanMurp
 
Posts: 75
Joined: Wed Nov 02, 2016 4:30 am

Re: Change Sort view via AppleScript?

Postby Eric Nepean » Thu Oct 25, 2018 4:10 am

Hi Sean, what's your ubjection to UI scripting?

BTW I have useful tools that will give the AS reference to any key you press.
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 367
Joined: Sat Oct 25, 2014 8:02 am

Re: Change Sort view via AppleScript?

Postby ben_US » Thu Oct 25, 2018 3:08 pm

SeanMurp wrote:Ok, thanks Ben. That would definitely be a feature request for us. Our digitechs use a script on each look that filters by green label and then sorts by rating and then reverse the order. Would be great if we could code that without the key commands/keyboard shortcuts.


I wholeheartedly agree.
Please make a support case for Technical Support with Capture One software:
http://support.phaseone.com and click on Contact Support, then select Technical Support.
ben_US
Crew
Crew
 
Posts: 601
Joined: Mon Feb 01, 2016 9:51 pm
Location: New York, USA

Re: Change Sort view via AppleScript?

Postby SeanMurp » Thu Oct 25, 2018 4:07 pm

Hey Eric,
UI scripting is fine in cases but we have a large enough fleet of computers which use a large library of custom applications that we have developed. The requirement to give the applications Assistive Access for each application that uses UI is too much of a hindrance on the user when every minute they are delayed costs quite a bit of money. Plus many of those users are switching between different computers on a daily basis which just compounds the issue. We just have much fewer issues to deal with not using UI calls when possible.
SeanMurp
 
Posts: 75
Joined: Wed Nov 02, 2016 4:30 am

Re: Change Sort view via AppleScript?

Postby Jim_DK » Fri Dec 21, 2018 2:24 pm

Sort order for collections has been added in Capture One 12
James
Phase One DK
Jim_DK
Crew
Crew
 
Posts: 643
Joined: Thu Dec 03, 2009 10:00 pm

Re: Change Sort view via AppleScript?

Postby SeanMurp » Fri Dec 21, 2018 6:27 pm

Thanks for the note Jim. I just saw that in the notes the other. Really looking forward to testing out 12.
SeanMurp
 
Posts: 75
Joined: Wed Nov 02, 2016 4:30 am


Return to Scripting



Who is online

Users browsing this forum: No registered users and 1 guest