A creating txt file script written by AppleScript