• 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: Christopher Stone <email@hidden>
  • Date: Wed, 04 Jun 2014 20:16:27 -0500

On Jun 04, 2014, at 07:36, Håvard Graudo <email@hidden> wrote:
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:
______________________________________________________________________

Hey Håvard,

I don't see anything obvious.  This works fine on my machine:

-------------------------------------------------------------------------------------------
tell application "Mail"
set read status of every message of mailbox "Pending/Amazon" to true
end tell
-------------------------------------------------------------------------------------------

You might double-check the syntax of your mailbox descriptor, but that's all I can think of offhand.

-------------------------------------------------------------------------------------------
# Select the relevant mailbox and run the script.
tell application "Mail"
# Just in case you're using MailHub.
if name of front window contains "mailhub" then
set winIndex to 2
else
set winIndex to 1
end if


tell (some message viewer whose index is winIndex)
selected mailboxes
end tell


end tell
-------------------------------------------------------------------------------------------

--
Best Regards,
Chris
_________________________
MacBookPro6,1
 | 2.66 GHz Intel Core i7
 | 8GB RAM
OSX 10.9.3

 _______________________________________________
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: Håvard Graudo <email@hidden>
References: 
 >Apple Mail syntax for nested folders (From: Håvard Graudo <email@hidden>)

  • Prev by Date: Re: Any Way to Force an Idle Handler System Call?
  • Next by Date: Re: Stay-Open Script Apps vs Cron
  • Previous by thread: Apple Mail syntax for nested folders
  • Next by thread: Re: Apple Mail syntax for nested folders
  • Index(es):
    • Date
    • Thread