Skip to content

Instantly share code, notes, and snippets.

View lockieluke's full-sized avatar

Sherlock Luk lockieluke

View GitHub Profile
@lockieluke
lockieluke / toggle-timer.scpt
Last active April 4, 2024 14:23
Apple Script for pausing/resuming active primary timer on macOS with the Clock app
tell application "Clock"
activate
end tell
tell application "System Events"
tell application process "Clock"
tell window 1
# Go to Timers, 1 = World Clock and so on
click radio button 4 of radio group 1 of group 1 of toolbar 1
# button 2 is pause, button 1 is cancel