• 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: Axel Luttgens <email@hidden>
  • Date: Sat, 28 Oct 2017 11:19:06 +0200
  • Ironport-phdr: 9a23:1l5f0REC3QFgsK8Iwfx9hZ1GYnF86YWxBRYc798ds5kLTJ7zpcmwAkXT6L1XgUPTWs2DsrQf2rqQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOCI2/2/KisJ/jqxVoAiuqRJ8zY7afoabOeFifqPEeNMWWWpBUtpTWiFHH4iyb5EPD+0EPetAs4T8qEUBrR+jDgeqGePv1iNIhnDo0q08yOQqDAbL0xYvHt0QtHTYttH1NLoOUeCpw6nH0zPDb+hN1Dfm64jJchYhru+QXb5qasXe11AiGgXYhVuTsYzoJzCY2+YXv2Wa7edsT+yihmE9pw1soDWixcEhgZTTiI0P0FDL7yB5zZ4wJd2/VUF0f8apEIBVtyGGL4t2Rd4iQ31wtCY61LIGvZm7cTANyJQ62x7fcP2Hc5CM4hLkSeadOyl3hX1/d7K6nxay9VavxvfgWcmz1VZGtitFkt/SuXARzxHe6cqKRuF880qjwzqC2Q/e5vtZLU02lqfXM5shzaQxlpoXv0TDBCj2mEDugaCMeUQr5Oyo5/7jYrX7up+cK4B0hR/4MqQ1gcG/Guc4MwgIX2eF5eSwzqbs8lPhTLVQkvI2irXZsIzdJckDvKG5GxdV0oI95BakEzimytUYnWEbLF5cZRKHlJbmO0vVIP3jCfe/gk+skCtwx/zcJLLhGo3NLnzdn7v7Ybl97Etcm0IPyoVW/I8cXrgZOPb+QUTrtcTESwIiPhav6+LmE8lmkIoGQWaCRKSeNfWBi1KQ4vMTJLyFf5Jd7D/lM/wo/PX0jGcl3EIGcLOy9Z8Wc2yjWP1+O0GUJ3Hrh4FSP30Nu18XXOHuwHmfTSJcanCpF/Y19jw/Toa7EZvMS4a2qKeCzSG2AttcazYVWRi3DX70etDcCL83YyWIL5o5nw==

> Le 27 oct. 2017 à 21:02, email@hidden a écrit :
>
> So, exactly how dumb is this?
>
> Somebody sent me a little test thingy:
> tell application "Mail"
>       set Msgs to selected messages of first message viewer
>       set MsgProps to properties of first item of Msgs
> end tell
>
> If I run it while a message is selected that has already been filed (in a
> separate folder), it seems to work:
>
> […]
>
> But if I drag THE SAME MESSAGE to my Inbox and run the script, I get an error:
>
> error "Mail got an error: Can’t get mailbox \"INBOX\" of account \"SBird\"."
> number -1728 from mailbox "INBOX" of account “SBird"
>
> Why is it looking for INBOX, when the name is “Inbox” ?
> What does it want a mailbox at all, I’m asking about a message.

Hello Steve,

The "Inbox" string is just a heading in the GUI display; "INBOX" is the
internal name of an account-related mailbox for incoming messages.
as
It probably wants a mailbox because the containing mailbox is a property of a
message, and your are asking for all properties of a given message.

Anyway, above snippet and its outcome perhaps summarizes the problems you are
encountering since your upgrade to 10.11.6; it goes about very basic things,
and if it fails when run against an incoming message, it is no wonder that more
sophisticated things fail too.

It could be inferred from your various messages that you have defined a single
account in Mail, an account named "SBird". Could you show us the output of each
of those tell blocks?

        tell application "Mail"
                mailboxes of accounts
        end tell

        tell application "Mail"
                mailboxes of inbox
        end tell

        tell application "Mail"
                properties of account "SBird"
        end tell

Axel

 _______________________________________________
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: Steve Bird <email@hidden>
    • Re: Running Scripts from Mail Rules
      • From: Steve Bird <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>)
 >Re: Running Scripts from Mail Rules (From: email@hidden)

  • Prev by Date: Re: What is "system events" ?
  • 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