• 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:39:19 +0200



5. juni 2014 kl. 03:16 skrev Christopher Stone <email@hidden>:

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



winIndex is 1

It returns the mailbox : (no mailhub)
—> mailbox "test/test 2"

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>)
 >Re: Apple Mail syntax for nested folders (From: Christopher Stone <email@hidden>)

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