Re: Mail OS X, can't move message or get date?
Re: Mail OS X, can't move message or get date?
- Subject: Re: Mail OS X, can't move message or get date?
- From: Paul Marcos <email@hidden>
- Date: Tue, 30 Oct 2001 09:33:50 -0800
On Monday, October 29, 2001, at 11:01 , Cornwall wrote:
Has anyone managed to move a message between mailboxes, or get a
messages date? I have gotten the following commands to work, but
getting a messages date doesn't return a value, and I just can't get
the syntax right to move a message. If anyone can help on the last, I'd
appreciate it.
Unfortunately getting dates from Cocoa apps does not work properly in
10.1. As for moving messages, I use the following test script on Mail
to move messages back and forth between folders:
tell application "Mail"
set lacct to account "Personal Mailboxes"
set box1 to mailbox "Box1" of lacct
set box2 to mailbox "Box2" of lacct
set msgs1 to messages of box1 whose is deleted is false
set msgs2 to messages of box2 whose is deleted is false
if the (count of msgs1) is greater than 0 then
set the container of every message in box1 to box2
else if the (count of msgs2) is greater than 0 then
set the container of every message in box2 to box1
end if
end tell
Paul
---
\
\ Paul Marcos
/ email@hidden
/
---