Re: Apple Mail syntax for nested folders
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