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

Apple Mail syntax for nested folders


  • Subject: Apple Mail syntax for nested folders
  • From: Håvard Graudo <email@hidden>
  • Date: Wed, 04 Jun 2014 14:36:06 +0200

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







 _______________________________________________
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

  • Follow-Ups:
    • Re: Apple Mail syntax for nested folders
      • From: Takaaki Naganoya <email@hidden>
    • Re: Apple Mail syntax for nested folders
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Stay-Open Script Apps vs Cron
  • Next by Date: Re: Second Call to Non-Stay-Open Script App Fails
  • Previous by thread: Re: Stay-Open Script Apps vs Cron
  • Next by thread: Re: Apple Mail syntax for nested folders
  • Index(es):
    • Date
    • Thread