Save emails to text files using AppleScript