Moving Mail....
Moving Mail....
- Subject: Moving Mail....
- From: Jim Burton <email@hidden>
- Date: Mon, 26 Aug 2002 10:14:44 -0600
Anyone have an idea on the proper syntax to move a message from one
mailbox to another in OSX Mail? I've tried simply setting the mailbox,
but I get an error.
example attempts to move spam messages INBOX to a particular mailbox...
tell application "Mail"
activate
set allacounts to every account
set spambox to mailbox "Spam"
repeat with anacount in allacounts
set everymess to every message of mailbox "INBOX" of anacount
repeat with eachmess in everymess
if (is junk mail of eachmess) then
tell message eachmess
activate
-- set mailbox to spambox
--generates error
end tell
end if
end repeat
end repeat
end tell
_______________________________________________
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.