Mail: Move message to another mailbox
Mail: Move message to another mailbox
- Subject: Mail: Move message to another mailbox
- From: Tom Tidland <email@hidden>
- Date: Tue, 25 Feb 2003 18:03:35 -0500
On Monday, February 24, 2003, at 09:54 PM, Tom Tidland wrote:
I wanted use applescript to perform a very simple operation...
Move a message from one mailbox to another mailbox.
I spent 6 hours trying to do this.
I failed, and felt very frustrated with the Mail dictionary
Michelle wrote back...
I just attempted this, never having tried it before. it took me about
five minutes.
tell application "Mail"
set foo to the selected messages of message viewer 1
set bar to item 1 of foo
set the mailbox of bar to mailbox "aaa"
end tell
It worked as expected.
--Michelle
Tom wrote to Michelle...
Am I supposed to consider this an insult?
"set foo" ?
The point I was making is that using the mail dictionary command "move"
One would think the code would be...
move message at mailbox "name" to mailbox "other_name"
As move is in the dictionary. foo is not. Neither is bar.
_______________________________________________
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.