RAW APPLESCRIPT CODE