• 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: A question about Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about Mail.app


  • Subject: Re: A question about Mail.app
  • From: Stan Cleveland <email@hidden>
  • Date: Mon, 11 Apr 2016 11:07:02 -0700

On Apr 8, 2016, at 08:58 PM, Brian Christmas <email@hidden> wrote:

I’m trying to Copy an opened Email message to a particular mailbox in Drafts.

The opened Menu is strange. It list all the mailboxes, and sub-mailboxes of all of them.

However, the ‘Drafts’ mailbox does not seem to have submenus listed when I try and get a list of the menu items. I can’t post a screen shot, because it’s too large. Does anyone know how I’d address the ‘MeSelfSoftware’ menu when copying the Message, please? It defaults to ‘Google’.

Hi Brian,

Why are you using UI scripting? I avoid it unless absolutely necessary. 

The vanilla AppleScript code below works here to access any sub-mailbox in Drafts:

tell application "Mail"
mailboxes of drafts mailbox
end tell
-->  {mailbox "Drafts" of application "Mail", 
mailbox "[Gmail]/Drafts" of account "Color Tech" of application "Mail", 
mailbox "[Gmail]/Drafts" of account "Gmail" of application "Mail", 
mailbox "Drafts" of account "CodeMunki" of application "Mail", 
mailbox "Drafts" of account "Frontier" of application "Mail", 
mailbox "Drafts" of account "Pacificwest" of application "Mail"}

I'm running El Capitan 10.11.4, if it matters.

Regards,
Stan C.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: A question about Mail.app
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: How can I set button text color, please
  • Next by Date: Re: A question about Mail.app
  • Previous by thread: Re: How can I set button text color, please
  • Next by thread: Re: A question about Mail.app
  • Index(es):
    • Date
    • Thread