您可以创建Automator服务或应用程序以方便执行rm
Shell Commando,这将永久删除文件或文件夹并跳过垃圾桶。
例如,从在Automator.app中创建新服务开始。
- 选择
files or folders
作为输入,您可能还希望将此服务的可用性限制为Finder应用程序。

- (可选,但强烈建议)首先
Ask for Confirmation
在工作流程中添加一个步骤。


如@Thecafremo所提到的,您还可以在删除时-P
向添加参数以rm
提高安全性。为了更加美观,您可以通过在shell脚本末尾添加以下命令来添加一些声音反馈:
afplay "/System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds/finder/empty trash.aif"
保存您的服务,它应该可以从菜单栏的“服务”菜单中的Finder中使用。右键单击Finder中的文件,该服务还将显示在您获得的菜单的底部,尽管要使其显示在该Finder > Services
菜单中,您可能必须先从菜单运行一次。您还可以在“系统偏好设置”的“键盘偏好设置”面板中为服务配置键盘快捷键。


除了创建服务之外,您可以类似地在Automator中创建一个应用程序,您可以将其固定在Dock中,以便将文件拖到其中。