Re: Failed attempt to select a particular mailbox in Mail.app
Re: Failed attempt to select a particular mailbox in Mail.app
- Subject: Re: Failed attempt to select a particular mailbox in Mail.app
- From: Luther Fuller <email@hidden>
- Date: Thu, 28 May 2009 16:45:55 -0500
On May 28, 2009, at 3:57 PM, Jim Krenz wrote: In my continuing attempts to learn AppleScript, I am working on a simple script that will go to/select a particular mailbox in Mail.app. Thus far, I have been hitting my head against the wall. Here is where I am at (which returns a error - AppleEvent handler failed):
tell application "Mail" set message viewer 1 to {mailbox "INBOX" of account "JK@org"} end tell
I'm sure I am missing something simple, due to my lack of knowledge/experience. Is set what I want to use, or am I completely off base?
Run this and see what happens and why ...
tell application "Mail" activate set frontViewer to message viewer 1 set mbox to some mailbox set selected mailboxes of frontViewer to {mbox} end tell
|
_______________________________________________
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