scripting mail.app to open an message
scripting mail.app to open an message
- Subject: scripting mail.app to open an message
- From: Jacco Rens <email@hidden>
- Date: Sun, 6 Jul 2003 09:12:51 +0200
Hi all,
seems i cannot find the command to simply open an message from an
mailbox:
tell application "Mail"
set myfolder to "auction"
set mycount to the count of messages of mailbox myfolder
set randNum to (random number from 1 to mycount)
set mysender to sender of message randNum of mailbox myfolder as text
display dialog "the winner is: " & mysender
select message randNum of mailbox myfolder --how do i open it now?
end tell
best,
-jacco
_______________________________________________
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.