I would like my TouchBar to show a warning (I have a flashing button ready for this), when I open Photoshop, After Effects, Premiere etc, while having True Tone enabled. Does anyone know how I could achieve this?
I have this script, that checks whether True Tone is enabled or not:
tell application "BetterTouchTool"
set trueToneState to is_true_tone_enabled
end tell
But how can I change it to actually trigger the visibility of my warning button?
And while I am at it, once the warning has been triggered and my button is flashing on the touchbar, how can I dismiss it by tapping it? Is there an action that says "hide on tab" for example?
The current alpha versions also have a trigger "Specific App Did Launch" in the "Other / Named Triggers" section. You could assign a run apple script action which opens a Touch Bar group like @oliviermattelaer described.
tell application "BetterTouchTool"
if is_true_tone_enabled then
trigger_action "{
\"BTTPredefinedActionType\" : 205,
\"BTTOpenGroupWithName\" : \"TrueToneGroup\",
}"
end if
end tell
it worked! wow i am just getting the hang of btt. love it.
quick question, my flashing button is made possible by an apple script which is set to execute every 0,5s. i also checked the "always run, when widget is visible" checkbox. does that mean that the script will only run, when it is visible or does the script run every 0,5second anyway all the time now?