Scripting Mail on OS X
Scripting Mail on OS X
- Subject: Scripting Mail on OS X
- From: Jacco Rens <email@hidden>
- Date: Fri, 12 Oct 2001 18:30:04 +0200
hi all,
maybe there is a bug in applescript support in Mail under Mac OS X?
tell application "Mail"
set source to the mailbox "applescript-users" of account "Personal
Mailboxes"
set x to the count of messages of source
--repeat with i from 1 to x
set mSender to the sender of message 1 of source
set mDate to the date received of message 1 of source
--end repeat
end tell
display dialog mSender
display dialog mDate
returns me the sender, but gives an error on the date variable being
empty ?!
although the Mail Dictionary tell's me i'm correct here ?
best,
jacco Rens
Netherlands