Re: Apple Mail syntax for nested folders
Re: Apple Mail syntax for nested folders
- Subject: Re: Apple Mail syntax for nested folders
- From: Håvard Graudo <email@hidden>
- Date: Thu, 05 Jun 2014 13:24:22 +0200
Le 4 juin 2014 à 14:36, Håvard Graudo < email@hidden> a écrit :
How do I access messages inside nested folders in Apple Mail?
I have a folder named “test 2” inside a folder named “test”. What am I doing wrong here:
tell application "Mail" set read status of (every message of mailbox "test") to true --> correct. every message status is changed in this folder set read status of (every message of mailbox "test/test 2") to true --> nothing happens. no error, no change of status. just nothing. set read status of (every message of mailbox "test/nonexistingfolder") to true --> correctly errors as there is no such folder end tell
OS 10.9.3, Apple Mail 7.3 Håvard
My guess is that you have only one mailbox named « test 2 ». Try to use : set read status of (every message of mailbox "test 2") to true
Yvan KOENIG (VALLAURIS, France) mercredi 4 juin 2014 16:06:10
Thank you for your suggestion,
set read status of (every message of mailbox "test 2") to true —> Mail got an error: Can’t set mailbox "test 2" to true.
This is the same error as I get with the nonexisting folder
Mailboxes are on the local mac, no imap nor gmail. Both “test” and “test 2” mailboxes contain both messages and other mailboxes.
Håvard
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden