Re: Getting Existing Outgoing Message in Mail.app
Re: Getting Existing Outgoing Message in Mail.app
- Subject: Re: Getting Existing Outgoing Message in Mail.app
- From: Luther Fuller <email@hidden>
- Date: Fri, 21 Dec 2007 14:30:30 -0600
On Dec 21, 2007, at 12:37 PM, Jeff Cooper wrote:
[this doesn't work]
set att to choose file
tell application "Mail"
activate
set msg to outgoing message 1 —THIS IS THE LINE GIVNG ME TROUBLE
tell content of msg
make new attachment with properties {file name:att} at
before first paragraph
end tell
end tell
You may be confusing Mail's 'mailbox "Outbox"' and 'mailbox
"Drafts"'. New messages go into "Drafts" , then into "Sent". The
"Outbox" only appears when you try to send a message unsuccessfully.
tell application "Mail"
first message of mailbox "Outbox"
end tell
returns --> message id 55767 of mailbox "Outbox" of application "Mail"
tell application "Mail"
outgoing message
end tell
Does not create a new message. I've just spent about half an hour
reading Mail's dictionary to find the command to create a new
message. (Surely, one can do that!) I've tried using Script Editor to
record making a new message, but it records nothing. The dictionary
indicates that I should ...
make new outgoing message at message viewer index 1
or
make new message at message viewer index 1
But both of these simply error.
I also tried to use the 'outgoing messages' command, as in ...
tell application "Mail"
count outgoing messages --> returns an integer
end tell
I've tried to get '... of outgoing message' to work, but it always
fails with an error.
Something seems to be wrong with 'outgoing message' !!! And I've run
out of possibilities.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden