Re: Scripting Mail
Re: Scripting Mail
- Subject: Re: Scripting Mail
- From: Michelle Steiner <email@hidden>
- Date: Sun, 25 May 2003 16:53:31 -0700
On Sunday, May 25, 2003, at 04:13 PM, Lewis Butler wrote:
I was trying to setup a script that would "touch" every mailbox,
forcing it to refresh the current status from the imap server:
tell application "Mail"
set AllMailboxes to (every mailbox of every account)
repeat with x in AllMailboxes
tell message viewer 1
set selected mailboxes to {x}
end tell
end repeat
end tell
This fails when the second set statement tries to set the selection to
all the mailboxes of the first account at once.
It works if you leave the braces off
set the selected mailboxes to x
It sets all the mailboxes of the first account simultaneously, then of
the second account, then of the third, etc.
But if you specify only one account when setting AllMailboxes, then you
need the braces, and it selects the mailboxes one at a time.
Very weird.
--Michelle
--
If you don't hit any bumps in the road, you're not moving.
_______________________________________________
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.