Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dgold1055

macrumors newbie
Original poster
Jul 16, 2015
9
0
I have a simple AppleScript to mark sent mail as read in Apple Mail. I have been using it for sometime but it has stopped working and I'm wondering anything has changed with Sierra that has caused it to malfunction. The script is:
tell application "Mail"
activate
set the read status of messages of mailbox "Sent" of account "iCloud" to true
end tell

Any ideas would be helpful.
 
If it is saved as an app try recompiling it. That has worked for me in previous OSX upgrades.
Otherwise it is possible that the commands such as "read status..." no longer work :(
 
First off, anyone that does AppleScript without Script Debugger from Late Night Software is crazy. There are debugging tools galore, an incredible interface and a excellent access to dictionaries (among many other features). I've been a user since v1, they just release v6. Worth every penny. (No, I don't own stock or have any financial interest int he company.)

I just check and the dictionary for El Cap does state the correct property is "read status" as you suggest. I can't help you with Sierra as I haven't installed it, but the dictionary is where to look, if you haven't already. If it is a bug, the folks on the forum for Script Debugger are the place I would go (or maybe stack overflow).

Good luck.
 
I know this is old, but I just took your script in Sierra and it worked fine.

Just in case anyone still had this burning question ;-)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.