Empty Trash Script Help?

I had an empty trash script that I always used:

on run {input, parameters}

tell application "Finder"
	empty the trash
end tell

return input

end run

but now i’m getting an error “error “” number -1721”

Can anyone help me figure out what is wrong? I’m confused why it would suddenly stop working after over a year of no issues.

Sorry. I should also clarify that the script was run as an application out of Automator. I had set an application up to run this apple script. I set it up so when I clicked on the top right corner of my trackpad, the application would run and empty my trash. All of a sudden though, it’s not working and I can’t seem to figure out why.