Describe the bug
Use command plus H to trigger this Apple script, using the specifically for Microsoft teams, when I trigger it, it runs three times, I added a volume increase of 10% at the end of the script to know when it runs, and it does indeed run three times the amount of increase of volume from 0% to 30%.
Here's the Script:
tell application "System Events"
-- Type "H"
keystroke "H"
delay 0.5
-- Press Enter
key code 36
delay 0.5
-- Press Command + /
key down command
delay 0.1
keystroke "/"
delay 0.1
key up command
delay 0.5
-- Press Backspace
key code 51
delay 0.5
-- Type "TEXT HERE"
keystroke "TEXT HERE"
delay 0.5
-- Press the down arrow key
key code 125
delay 0.5
-- Press Enter
key code 36
-- Increase the volume by a small amount
set currentVolume to output volume of (get volume settings)
set volume output volume (currentVolume + 10) -- Increase by 10%
end tell
Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Screenshots
Device information:
- Type of Mac: BMP M1Pro 16/1To
- macOS version: 14.5
- BetterTouchTool version: 4.558
