• 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: Running Scripts from Mail Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running Scripts from Mail Rules


  • Subject: Re: Running Scripts from Mail Rules
  • From: email@hidden
  • Date: Fri, 27 Oct 2017 17:08:08 -0400

tell application "Mail"
        set Msgs to selected messages of first message viewer
        set MsgProps to properties of first item of Msgs
        set boxes to mailboxes
        set p to properties of mailbox "Outbox"
end tell

So, I can list all the mailboxes. I have about a hundred, but “Inbox” or
“INBOX” is not one of them.  Why?
There is a mailbox for “Junk”, “Outbox”, “Sent Messages”, and all my personal
ones, but no INBOX.

Even if I run the script from a sent message, I get the error 'Can’t get
mailbox “Sent Messages” of account “SBird” ‘

Arrggh
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com                     (toll free) 1-877-676-8175




 _______________________________________________
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

  • Follow-Ups:
    • Re: Running Scripts from Mail Rules
      • From: email@hidden
References: 
 >Running Scripts from Mail Rules (From: Steve Bird <email@hidden>)
 >Re: Running Scripts from Mail Rules (From: Ray Robertson <email@hidden>)
 >Re: Running Scripts from Mail Rules (From: Steve Bird <email@hidden>)

  • Prev by Date: Re: Applescript reference for MS Office ?
  • Next by Date: Re: Running Scripts from Mail Rules
  • Previous by thread: Re: Running Scripts from Mail Rules
  • Next by thread: Re: Running Scripts from Mail Rules
  • Index(es):
    • Date
    • Thread