on run set scriptPath to quoted form of POSIX path of (path to resource "run.sh") do shell script scriptPath end run on quit set cleanupPath to quoted form of POSIX path of (path to resource "quit.sh") do shell script cleanupPath continue quit end quit