Re: Moving Mail....
Re: Moving Mail....
- Subject: Re: Moving Mail....
- From: cricket <email@hidden>
- Date: Mon, 26 Aug 2002 12:07:11 -0700
I believe you're running into a known bug with mailbox references. Can
you try doing:
set mailbox of eachmess to mailbox "Spam"
...instead?
- cricket
On Monday, August 26, 2002, at 11:16 AM, Jim Burton wrote:
What error are you getting? If you do a 'get every mailbox', does it
return a mailbox called "Spam"?
I'm getting:
Can't set <<class mbxp>> to spambox. Access not allowed.
When I do 'get every mailbox, one of the items in the result list is
mailbox "Spam" of application "Mail"
- cricket
On Monday, August 26, 2002, at 09:14 AM, Jim Burton wrote:
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
----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
Trees all waved their giant arms - Happiness bled from every street
corner - Biplanes bombed with fluffy pillows
_______________________________________________
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.