email - Getting the content to a mail message from a rule in applescript fails -


i trying grab body text of email message (in example i'm using email subject avoid issues text formatting) i'm sure used work:-

using terms application "mail"  on perform mail action messages themessages   tell application "mail"    activate    set themessage item 1 of themessages    try     set themessagesubject subject of themessage    on error errmsg     display dialog "error: " & errmsg    end try   end tell  end perform mail action messages end using terms  result -> error: can't <<class mssg>> 1 of <<class mact>> "incoming pop messages" of <<class mact>> "my email account". invalid index. 

i have tried using "repeat themessage in themessages" same result.

i've tried inserting multiple delays because read that didn't here.

this seems bug how apple mail handles incoming pop messages. using imap account instead , acceptable solution me.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -