APPS: AbleSet on the Tracks Mac watched; hold and auto-fix open it minimized
The user keeps AbleSet open (minimized) so ProdDash shows it. mac_start gets a Minimized option: open -g, then once the program has a window, System Events minimizes it. Tested live: quit AbleSet, APPS showed ABLESET NOT RUNNING within seconds, the hold reopened it with its window minimized. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+27
@@ -24,6 +24,7 @@
|
||||
"arena",
|
||||
"obs",
|
||||
"ableton",
|
||||
"ableset",
|
||||
"translate",
|
||||
"dvs_prop",
|
||||
"dvs_tracks",
|
||||
@@ -530,6 +531,20 @@
|
||||
"label": "build this week's Ableton sets (Sunday and special services) from Planning Center",
|
||||
"never_auto": true,
|
||||
"short": "START"
|
||||
},
|
||||
"ableset": {
|
||||
"host": "tracks",
|
||||
"kind": "ssh",
|
||||
"label": "start AbleSet on the Tracks Mac if it is not running (minimized, for ProdDash)",
|
||||
"params": {
|
||||
"host": "tracks",
|
||||
"process": "AbleSet",
|
||||
"app": "AbleSet",
|
||||
"minimized": true
|
||||
},
|
||||
"run": "pgrep -xq AbleSet || { open -g -a AbleSet; i=0; while [ $i -lt 20 ]; do sleep 1; i=$((i+1)); n=$(osascript -e 'tell application \"System Events\" to count windows of process \"AbleSet\"' 2>/dev/null); if [ \"${n:-0}\" -gt 0 ]; then osascript -e 'tell application \"System Events\" to tell process \"AbleSet\" to set value of attribute \"AXMinimized\" of every window to true' >/dev/null 2>&1; break; fi; done; }",
|
||||
"short": "ABLESET",
|
||||
"template": "mac_start"
|
||||
}
|
||||
},
|
||||
"flap": {
|
||||
@@ -2246,6 +2261,18 @@
|
||||
"template": "mac_program",
|
||||
"type": "remote"
|
||||
},
|
||||
{
|
||||
"cmd": "pgrep -xq AbleSet",
|
||||
"fix": "ableset",
|
||||
"host": "tracks",
|
||||
"msg": "ABLESET NOT RUNNING",
|
||||
"params": {
|
||||
"host": "tracks",
|
||||
"process": "AbleSet"
|
||||
},
|
||||
"template": "mac_program",
|
||||
"type": "remote"
|
||||
},
|
||||
{
|
||||
"cmd": "pgrep -xq 'Church Translate'",
|
||||
"fix": "translate",
|
||||
|
||||
Reference in New Issue
Block a user