x@Mac-mini-M1 ~ % cat ClearClipboard.scpt on run tell application "System Events" to set the clipboard to "" end run x@Mac-mini-M1 ~ %