Removing Applications With Finder

Howdy,
Im making an updater app that needs to be able to remove the older version of my app. But it could be hidden anywhere in any folder of the home folder.
All i can think of is this:

tell application "Finder"
	delete (every file of (every folder in home folder) whose name is "Tune-O-Matic.app")
end tell

THANKS if you can help!

Hi,

try this


do shell script "rm -r " & quoted form of POSIX path of (path to application "Tune-O-Matic")