Re: Moving newly created email
Re: Moving newly created email
- Subject: Re: Moving newly created email
- From: "Duncan McGregor" <email@hidden>
- Date: Wed, 7 May 2008 16:15:37 +0100
On Wed, May 7, 2008 at 11:33 AM, Axel Luttgens <email@hidden> wrote:
> 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.
Thanks Axel.
I've tried some other solutions based on finding the message again
once saved - yours is probably the simplest.
As you say though, there must be a better way. Can anyone tell me why
moving a new message fails in the way that it does?
_______________________________________________
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