• 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: Apple Mail syntax for nested folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


4. juni 2014 kl. 16:06 skrev KOENIG Yvan <email@hidden>:


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

References: 
 >Apple Mail syntax for nested folders (From: Håvard Graudo <email@hidden>)

  • Prev by Date: Re: Stay-Open Script Apps vs Cron
  • Next by Date: Re: Apple Mail syntax for nested folders
  • Previous by thread: Re: Apple Mail syntax for nested folders
  • Next by thread: Re: Apple Mail syntax for nested folders
  • Index(es):
    • Date
    • Thread