When you save the script as an application, you can use it with Spotlight!
- Open Automator
- Create new Application
- Drag the
Run Applescriptaction - Type the script
- Save as
Empty Trash
| on run {} | |
| tell application "Finder" | |
| empty the trash | |
| end tell | |
| end run |