• 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: 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
  • Follow-Ups:
    • Adding a SENDER to a Group RULE in Apple Mail 2.1
      • From: Don Wieland <email@hidden>
    • Re: Moving newly created email
      • From: "Duncan McGregor" <email@hidden>
References: 
 >Moving newly created email (From: Duncan McGregor <email@hidden>)

  • Prev by Date: Re: INDESIGN: Problem with Object Placement
  • Next by Date: Re: Moving newly created email
  • Previous by thread: Moving newly created email
  • Next by thread: Re: Moving newly created email
  • Index(es):
    • Date
    • Thread