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?


Colin Foster has a script that does this at…

Thanks a lot!