applescript error fix