Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeking happy returns, Mail to FM



Greetings,

I can't seem to get the paragraph formatting to stick as I pass it from Mail to 
Filemaker. Any suggestions are gratefully appreciated.

Regards,

Erik Ness 

using terms from application "Mail"
	tell application "Mail"
		set theSelectedMessages to selection
		set eachMessage to item 1 of theSelectedMessages
		set theSubject to subject of eachMessage
		set theSender to sender of eachMessage
		set theContents to content of eachMessage [I've tried 'as string' and 
'as text' and 'as Unicode' text here}
	end tell
end using terms from
tell application "FileMaker Pro"
	activate
	open "filepathtosomeDB.fp7"
	tell database "someDB.fp7"
		go to layout "Card Catalog"
		create new record in table "Library"
		set cell "Title" of last record in table "Library" to theSubject
		set cell "Text" of last record in table "Library" to theContents
		set cell "Bibliography" of last record in table "Library" to theSender

	end tell
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.