Scripting Mail.app
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