Re: Moving newly created email
Re: Moving newly created email
- Subject: Re: Moving newly created email
- From: Axel Luttgens <email@hidden>
- Date: Wed, 7 May 2008 12:33:28 +0200
Le 6 mai 08 à 22:48, Duncan McGregor a écrit :
I'm trying to create a new email and then move it into a GMail IMAP
folder, on Leopard.
If I try this
[...]
I get the same errors using a local mailbox. The event logs seem to
suggest that all the objects exist, it just seems to be picking on
me ;-)
Hello Duncan,
Once saved, the outgoing message in fact becomes a draft message.
Perhaps could you try something along those lines:
tell application "Mail"
make new outgoing message with properties {visible:false,
subject:"subject"}
close first outgoing message saving yes
delay 1
first message of drafts mailbox -- do something with that message
end tell
I've introduced the delay so as to allow Mail to perform some
housekeeping; without it, "first message" doesn't always refer to the
last message to have been put in the drafts mailbox (i.e. all drafts
mailboxes considered as a whole). But sure there must be a better way
to achieve the same result.
HTH,
Axel _______________________________________________
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