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
|