This works:
(select main message in a mailbox message which has several threads in it)
tell application "Mail"
set myList to the selection
move (item 1 of myList) to mailbox "Deleted Messages" of account "Work Email"
end tell
The script above correctly gets the message list, but the script below which tries to just read the messages into the list with Applescript does not.
This fails:
tell application "Mail"
set msg_list to every message of mailbox "Inbox" of account "Work Email"
-- line below also fails:
-- set msg_list to (every message of mailbox "Inbox" of account "Work Email") as list
move (item 1 of msg_list) to mailbox "Deleted Messages" of account "Work Email"
end tell
In Script Debugger 5, the Inspector window (in Explorer mode) shows little yellow triangles with exclamation points next to the individual messages here (where normally it would should a readable/writeable icon). Is this broken in Mail in Mountain Lion?
OS X 10.8.2, MacBook Pro (late 2008)
vince