tell application "Mail" set myfolder to "zBook giveaway" 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 set the clipboard to mysender end tellRunning this script gave me the following results:
LRogers has been notified by email. In the event that he/she is unable to claim the prize by 5pm today, I'll run the AppleScript again :-). Thanks everyone for participating; I must say I wasn't really expecting over 1,300 emails during the weekend!
-rob.

