• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
transfer message from Mail to FileMaker - no "returns" in the message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

transfer message from Mail to FileMaker - no "returns" in the message


  • Subject: transfer message from Mail to FileMaker - no "returns" in the message
  • From: Armin Egginger <email@hidden>
  • Date: Mon, 28 Apr 2003 14:04:02 +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

cross-solution
Armin Egginger
Otto-Wagner-Str. 7A
82110 Germering
Tel.: 089/84102570
Fax: 089/84102573
_______________________________________________
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.

  • Follow-Ups:
    • Re: transfer message from Mail to FileMaker - no "returns" in the message
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: Recording actions
  • Next by Date: Re: transfer message from Mail to FileMaker - no "returns" in the message
  • Previous by thread: iView Media script problem
  • Next by thread: Re: transfer message from Mail to FileMaker - no "returns" in the message
  • Index(es):
    • Date
    • Thread