Re: Moving a message in Mail.app
Re: Moving a message in Mail.app
- Subject: Re: Moving a message in Mail.app
- From: cricket <email@hidden>
- Date: Fri, 14 Mar 2003 13:50:45 -0800
On Thursday, March 13, 2003, at 7:39 PM, Stephan R. Cleaves wrote:
tell application "Mail"
set mbox to mailbox named "Deleted Messages" of account ".Mac"
count messages of mbox
set theViewer to first message viewer
set selectedMessages to selected messages of theViewer
move selectedMessages to mbox
count messages of mbox
end tell
The above script tries to move any currently selected messages from
the mailbox they are in to the Deleted Messages mailbox of account
.Mac. This likely will only work for messages that are actually on .Mac
to begin with. This script runs to completion just fine. The trouble is
it doesn't do anything. The selected messages are still in the mailbox
they started in and the Delete Messages mailbox does not get any new
messages. I'm actually beginning to wonder if maybe the "move" command
doesn't work in Mail.app?
Any help would be greatly appreciated. Please email me directly if
possible.
Your suspicions are correct. This is fixed internally and will be
included in the next release of Mail. Another way you can pull this off
now is to set the mailbox property of any message to be another
mailbox. Using your script, you could replace the 'move
selectedMessages to mbox' line with:
set mailbox of selectedMessages to mbox
- cricket
----->
Software Entomologist Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
It had all the aesthetic appeal of a Soviet worker housing block, it
leaked oil and blew gaskets, and it was an enormous success.
_______________________________________________
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.