Skip to content

Instantly share code, notes, and snippets.

@brunopinheiro
Last active February 26, 2024 14:10
Show Gist options
  • Save brunopinheiro/18f3f3c00388521105334c7cb9ad559a to your computer and use it in GitHub Desktop.
Save brunopinheiro/18f3f3c00388521105334c7cb9ad559a to your computer and use it in GitHub Desktop.
Empty Trash AppleScript
on run {}
tell application "Finder"
empty the trash
end tell
end run

Empty Trash AppleScript

Using as an Application

When you save the script as an application, you can use it with Spotlight!

  1. Open Automator
  2. Create new Application
  3. Drag the Run Applescript action
  4. Type the script
  5. Save as Empty Trash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment