Eudora fields

Hi. I’ve been trying to make a fancier version of the EU_findDuplicates script out there, but have two problems:

1: Where could I find a list of the fields Eudora has for messages?

2: If the subject is blank, Applescript croaks when I try “set asubj to get field “Subject” of message n of mailbox Box” – how might I avoid that problem?

Many thanks!!!

S

Model: Titanium PB
Browser: Safari 417.9.3
Operating System: Mac OS X (10.4)

Hi;

I use this script to send messages - you’ll see the names of the fields in the handler:


set ToWhom to "address@domain"
set theSubject to "SomeTopic"
set R2 to return & return
set theMessage to "Now is the time for all good men to come to the aid of the party." & R2 & "The quick brown fox jumps over the lazy dog."
set FromWhom to 2 -- I have three email addresses

SendIt(ToWhom, theSubject, theMessage, FromWhom)

on SendIt(ToWhom, SubjectLine, MessageText, FromWhom)
	tell application "Eudora"
		activate
		set x to make message at (end of mailbox "Out" of mail folder "")
		set field "To" of x to ToWhom
		set field "Subject" of x to SubjectLine
		set field "" of x to MessageText
		set personality of x to personality (get name of personality FromWhom)
		set signature of x to alternate
		--queue x
	end tell
end SendIt

Use a try block to avoid the bomb on the empty subject line


tell application "Eudora"
	try
		set asubj to get field "Subject" of message n of mailbox Box
	on error
		set asubj to "N/A"
	end try
end tell