Script to quit all apps

I am a novice who wants to write a script to quit all running applications except the Finder. I have looked through the documentation (and searched here online) but I can’t find what I am looking for. Can you guys give me any ideas?

Thanks!

Colin Foster has a script that does this at…

http://scriptbuilders.net/category.php?search=quit+anything

Thanks a lot!