• 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: How do I move a message in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I move a message in Mail?


  • Subject: Re: How do I move a message in Mail?
  • From: "W. Eric Tyson" <email@hidden>
  • Date: Fri, 30 Aug 2002 18:37:26 -0600

cricket,

thanks this is great. i had tried this before, but my problem turns out to be me. i was attempting to move a message that had yet to be created into the trash. basically, i as trashing before sending the message. if i run that snippet on an existing message it works fine.

so, i've tried this:

try
set mailbox of newMessage to mailbox "Trash"

on error errMsg number errNum
repeat until errNum is null
set mailbox of newMessage to mailbox "Trash"
end repeat
end try

but obviously this isn't going to work. is there a "waiting until complete" command so i could move the newly created message once the send is complete?

eric



On Friday, August 30, 2002, at 12:38 PM, cricket wrote:

On Friday, August 30, 2002, at 09:05 AM, W. Eric Tyson wrote:

I am running OS X 10.2, and I'm trying to figure out how to move selected email messages (or ones i just created via applescript) into different folders. Does anyone have some sample code or know how to do this?

This snippet will move the selected messages to the Trash mailbox:

tell application "Mail"
set theSelectedMessages to the selection
repeat with eachMessage in theSelectedMessages
set mailbox of eachMessage to mailbox "Trash"
end repeat
end tell

- cricket

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
I'm lost and I don't know where I am.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How do I move a message in Mail?
      • From: cricket <email@hidden>
References: 
 >Re: How do I move a message in Mail? (From: cricket <email@hidden>)

  • Prev by Date: Please comment on Mail to Spamcop script...
  • Next by Date: Re: AS & cron?
  • Previous by thread: Re: How do I move a message in Mail?
  • Next by thread: Re: How do I move a message in Mail?
  • Index(es):
    • Date
    • Thread