• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
scripting mail.app to open an message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Calling OSX AppleScript from Classic Apps
  • Next by Date: Re: Another Panther Query... (was Re: applescript url)
  • Previous by thread: Re: Gestalt Identifies for X
  • Next by thread: Get a list of applications
  • Index(es):
    • Date
    • Thread