transfer message from Mail to FileMaker - no returns in message
transfer message from Mail to FileMaker - no returns in message
- Subject: transfer message from Mail to FileMaker - no returns in message
- From: Armin Egginger <email@hidden>
- Date: Mon, 28 Apr 2003 13:56:40 +0200
Hi Scripter,
my first posting in applescript-user-list. I hope it works!
I try to transfer my emails to a filemaker-database. It works, but the
returns in the message block don't work - In AppleScript EventLog
everything seems to be ok, but in FileMaker the message is not with
returns - instead of returns are some squares. I wrote a FileMaker
script to change this to returns, but I don't understand, why the
transfer to FileMaker isn't correct. Any ideas?
Mac OS X.2.5 , FileMaker Pro 6.0.4, AppleScript 2.0 beta
tell application "Mail"
tell mailbox "privat_mails"
set tNumber to (count every message)
repeat with i from tNumber to 1 by -1
tell message i
set dsd to date sent -- The date a message was received
set cont to content -- Contents of an email message
set SendName to sender -- The sender of the message
set mailID to message id -- The sender of the message
set MailSubject to subject -- Subject of email message
newmessage(dsd, cont, SendName, mailID, MailSubject) of me
end tell
end repeat
end tell
end tell
on newmessage(dsd, cont, SendName, mailID, MailSubject)
tell application "FileMaker Pro"
tell document "emails.FP5"
set NewRec to create new record
tell last record
set cell "sender" to SendName
set cell "date_sent" to (dsd as string)
set cell "subject" to MailSubject
set cell "message" to cont
set cell "newsID" to mailID
end tell
end tell
end tell
end newmessage
cross-solution
Armin Egginger
Germany
_______________________________________________
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.