Re: transfer message from Mail to FileMaker - no "returns" in the message
Re: transfer message from Mail to FileMaker - no "returns" in the message
- Subject: Re: transfer message from Mail to FileMaker - no "returns" in the message
- From: Helmut Fuchs <email@hidden>
- Date: Mon, 28 Apr 2003 14:55:44 +0200
Hi,
I've never scripted Mail myself, but after reading countless messages
bashing Mail for not being very Mac like, I'd assume the problem lies
in Mail using LF characters for line endings and FileMaker using the
traditional CRs.
The event log doesn't show this, because it's obviously smart enough
to deal with both formats.
Just try to replace LFs with CRs before transferring your data to
FileMaker (untested script follows):
set prevTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to Ascii character 10
set cont to text items of cont
set AppleScript's text item delimiters to Ascii character 13
set cont to cont as text
set AppleScript's text item delimiters to prevTIDs
Does anyone know what MacOS X defines as the preferred end of line
character? Or are CR, LF and CR/LF all valid nowadays?
HTH,
Helmut
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.