• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Scripting Mail (From: Lewis Butler <email@hidden>)

  • Prev by Date: Scripting Mail
  • Next by Date: Re: Problems Running Applescripts
  • Previous by thread: Scripting Mail
  • Next by thread: Re: applescript-users digest, Vol 3 #1684 - 13 msgs
  • Index(es):
    • Date
    • Thread