Formatting applescript