• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Mail.app


  • Subject: Scripting Mail.app
  • From: "J.B. Stewart" <email@hidden>
  • Date: Mon, 21 Jan 2002 16:04:20 -0500

Has anyone had any success opening downloaded emails in the Mail.app?
The following doesn't seem to work. Nor did any other of the methods I
tried.


tell application "Mail"
open message 1 of mailbox 1 of account 1 of application "Mail"
end tell

(* Mail got an error: message 1 of mailbox 1 of account 1 doesn't
understand the open message. *)


As a side note, the use of 'item' in a Mail.app tell block causes the
word 'item' to become 'Abstract object' when compiled. Seems like time
for an update.

set bar to {1, 2, 3}
tell application "Mail"
set foo to item 1 of bar
end tell

becomes

set bar to {1, 2, 3}
tell application "Mail"
set foo to Abstract object 1 of bar
end tell

John


  • Follow-Ups:
    • Re: Scripting Mail.app
      • From: Michael Turner <email@hidden>
    • another Scripting Mail.app question
      • From: Michael Turner <email@hidden>
    • Or TextEdit? [WAS: Re: Scripting Mail.app]
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Perl in AppleScript Reference
  • Next by Date: Or TextEdit? [WAS: Re: Scripting Mail.app]
  • Previous by thread: Re: Scripting Mail.app
  • Next by thread: Or TextEdit? [WAS: Re: Scripting Mail.app]
  • Index(es):
    • Date
    • Thread