• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Moving newly created email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Moving newly created email (From: Duncan McGregor <email@hidden>)
 >Re: Moving newly created email (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Moving newly created email
  • Next by Date: How to maximize Safari windows?
  • Previous by thread: Re: Moving newly created email
  • Next by thread: Adding a SENDER to a Group RULE in Apple Mail 2.1
  • Index(es):
    • Date
    • Thread