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