Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

And the winner is ... Site News
There were a total of 1,385 unique entries for the free book giveaway ... and instead of using Excel to pick the winner, my buddy Jacco wrote me an AppleScript to do the work directly in Mail:
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 tell
Running 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!

  • Currently 1.86 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)

And the winner is ... | 5 comments | Create New Account
Click here to return to the 'And the winner is ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
It was fixed!
Authored by: notmatt on Jul 07, '03 04:54:42PM

I never win! no fair! :)

[ Reply to This | # ]
It was fixed!
Authored by: macmath on Jul 07, '03 05:03:40PM

(Assuming that your name is Matt) it is unclear whether or not you could have won.

If you had won, then Rob would have said "The winner was notmatt.", in which case the winner was not Matt. Thus, you would not have won.

If you had not won, then the winner was not notmatt, in which case the winner was Matt.

[Apologies for poor humor, even if it was logical.]

[ Reply to This | # ]
It was fixed!
Authored by: davidnorton on Jul 08, '03 11:57:26PM

I thought it was funny :-)

[ Reply to This | # ]
And the winner is ... All Of Us!
Authored by: on Jul 07, '03 07:30:45PM

Heck. ... I think we are all winners. ... I just used that script to generate someone to write to. ... My local winner is just a member of my Friends mailbox. ... So my friends all get a chance every day to have me write them out of the blue, for no real good reason, except that the RandomFriend script thought I should maile them a little good wishes. ... And an out-of-the blue hello!

50% of all the people on this planet are below average in I.Q., even Americans.

[ Reply to This | # ]
And the winner is ... All Of Us!
Authored by: david-bo on Jul 09, '03 03:55:30AM

Can someone rewrite this script for Eudora?


[ Reply to This | # ]