Categories
Mac

macOS 利用 AppleScript 双击清空废纸篓

OS X下清空废纸篓,要么右击,再按清空或者Command+shift+delete或者Command+shift+option+delete

个人觉得太麻烦了,用AppleScript自己写一个小小的App放到桌面的废纸篓旁边,Finder里面设置一下无需确认,双击一下就能清空了。

代码如下:

tell application "Finder"

empty the trash

end tell

或者直接下载我做好的 App

点击下载

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code