• 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: Mail scripting once more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail scripting once more


  • Subject: Re: Mail scripting once more
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 17 Apr 2008 15:40:35 -0500

First, you have to get Mail's path to the mailbox. If you have a mailbox named "Stuff", containing a sub-mailbox named "Good", containing a mailbox named "Very", then the Mail path is ...

	set mailboxpath to "Stuff/Good/Very"

But, you will have to write a repeat loop containing this line

	set mailboxpath to containerName & "/" & mailboxpath

somewhere to get mailboxpath. (Look-up 'container' in Mail's dictionary.)

Then you have to ...

	set frontViewer to (some message viewer whose index is 1)
	set selected mailboxes of frontViewer to {mailbox mailboxpath}

I'm not sure this does exactly what you want, but I hope it's a good start.

On Apr 17, 2008, at 2:35 PM, awaw wrote:

I begin to be a bit more "familiar" with AppleScript, but…

My "last" difficulty with Mail :

I want, simply, to open the window of a mailbox with a known name. (same question with an account of the inbox)
I have got that name before in the script.


I list all mailboxes with or not  message(s) in it.
I list also mailboxes with or not submailboxes

BUT, how to force Mail to put the it's active window to that mailbox and after show (open) the window of that mailbox?
(Like when I click on a mailbox in Mail Application.)


I haven't found the path…
_______________________________________________
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: 
 >Mail scripting once more (From: awaw <email@hidden>)

  • Prev by Date: Re: Mail scripting once more
  • Next by Date: Opening files in Illustrator CS3
  • Previous by thread: Mail scripting once more
  • Next by thread: Re: Mail scripting once more
  • Index(es):
    • Date
    • Thread