Touchbar and BetterTouchTool

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

Touchbar and BetterTouchTool

Postby NNN636784157836622773 » Thu Jan 23, 2020 1:36 pm

Hi all,

I'm fairly new to Applescript, but I'm slowly getting the hang of it. Sorry in advance if I'm being incredibly stupid!
I haven't seen much mention of Mac touchbar compatibility with Capture One.
I did find a helpful post on this forum but it didn't quite answer all of my questions.
I'm trying to code a "Custom Applescript Slider Widget" in BetterTouchTool to modify either brush size or selected layer opacity, but I'm having problems finding the right way to point to these functions in the script.

I checked the scripting dictionary but found no mention of "brush". I think I've found that brush size is in tools configuration > size (integer) and that the brush size can vary from 1 to 6000. This is the code I was hoping would work, but I'm not getting anything yet.

Code: Select all
on bttWidgetSliderMoved(sliderValue)
   if application "Capture One 12" is running then
      tell application "Capture One 12"
            set size of tool to (sliderValue) * 6000
      end tell
   end if
end bttWidgetSliderMoved

Is it possible? What am I doing wrong?

Thank you.
Posts: 1
Joined: Wed Nov 21, 2018 5:49 pm

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest