I’m having the hardest time accomplishing a very simple task. The macOS app Infuse likes to resize the window whenever I start playback of a new file. All I want to do is keep the window centered. However, I cannot for the life of me find a trigger that keeps the app centered when this resizing occurs. I have tried everything in the automation triggers that involve windows to no avail. I can open Infuse and have it centered, but as soon as the window resizes with playback it is no longer centered. Any help would be appreciated. Please see my attached screen recording.
Have you tried the "Trigger macOS Functionality From System Settings => Keyboard => Keyboard Shortcuts" action ? I was able to achieve this with shortcut trigger however:
[
{
"BTTLastUpdatedAt" : 1773127219.646863,
"BTTTriggerType" : 0,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTUUID" : "00BB6BE3-ADB5-469E-81B3-87A0A6ABD84B",
"BTTAdditionalConfiguration" : "0",
"BTTShortcutKeyboardType" : 2302,
"BTTTriggerOnDown" : 1,
"BTTLayoutIndependentChar" : "SPACE",
"BTTShortcutKeyCode" : 49,
"BTTShortcutAdvancedModifierKeys" : "0",
"BTTShortcutModifierKeys" : 0,
"BTTOrder" : 0,
"BTTAutoAdaptToKeyboardLayout" : 0,
"BTTActionsToExecute" : [
{
"BTTLastUpdatedAt" : 1773127217.674288,
"BTTTriggerParentUUID" : "00BB6BE3-ADB5-469E-81B3-87A0A6ABD84B",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTUUID" : "8E63B6B3-764F-4C00-9959-4D2C2F1E4BEA",
"BTTPredefinedActionType" : 124,
"BTTPredefinedActionName" : "Trigger Menu Bar Menu-Item",
"BTTMenubarPath" : "Playback;Play/Pause",
"BTTShortcutKeyboardType" : 0,
"BTTShortcutKeyCode" : -1,
"BTTOrder" : 3,
"BTTAutoAdaptToKeyboardLayout" : 0
},
{
"BTTLastUpdatedAt" : 1773127205.0890632,
"BTTTriggerParentUUID" : "00BB6BE3-ADB5-469E-81B3-87A0A6ABD84B",
"BTTIsPureAction" : true,
"BTTTriggerClass" : "BTTTriggerTypeKeyboardShortcut",
"BTTUUID" : "6AF13229-4065-4BC7-990C-D12DFACE8772",
"BTTPredefinedActionType" : 519,
"BTTPredefinedActionName" : "Trigger macOS Functionality From System Settings => Keyboard => Keyboard Shortcuts",
"BTTGenericActionConfig" : "238",
"BTTShortcutKeyboardType" : 0,
"BTTShortcutKeyCode" : -1,
"BTTOrder" : 4,
"BTTAutoAdaptToKeyboardLayout" : 0
}
]
}
]
You can also use "Trigger On Change of Advanced Trigger Condition" trigger in "Automations, Named & Other Triggers"." I believe as a trigger
Hey, I’m really sorry but could you send me a screenshot of what you mean? I’m getting a little lost. I’ve never set up an advanced trigger condition.
You can copy/paste the code in the "Keyboard" section in BT. For the "Advanced trigger condition" I'll try it later and if it works I'll provide a screenshot.