Made OS X app AppleScript compatible with 10.7

and moved it out of the template.