I am working on a little script to help me organize my open messages, and I want to get every open outgoing message in Mail.app.
When I run the following I get {}
back regardless of what outgoing messages I have open.
tell application "Mail"
get every outgoing message
end tell
When I however run
tell application "Mail"
make new outgoing message
get every outgoing message
end tell
The first instance I get {outgoing message id 44 of application "Mail"}
, the second time I get {outgoing message id 44 of application "Mail", outgoing message id 45 of application "Mail"}
, etc, as it keeps opening new blank outgoing messages.
So what I'm seeing is that it can only find messages created by Applescript? Is this a bug or a feature? Is there a workaround?