运行 警报关闭后的系统命令
Run system command after alert closed
如何在警报通知关闭时运行系统命令?
我是这样触发上述警报的:
display notification "Timer for 0:00:00 finished" with title "Time's up!"
单击 关闭 按钮后我该怎么做?
在纯 AppleScript 中不能,因为单线程 AppleScript 无法处理回调。
如何在警报通知关闭时运行系统命令?
我是这样触发上述警报的:
display notification "Timer for 0:00:00 finished" with title "Time's up!"
单击 关闭 按钮后我该怎么做?
在纯 AppleScript 中不能,因为单线程 AppleScript 无法处理回调。