Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applescript for Outlook - mark messages as read

I am looking for an Applescript to mark messages as read within Outlook 2011 for Mac.

I have not been able to identify the correct property to set.

like image 643
user2081508 Avatar asked Feb 17 '13 22:02

user2081508


People also ask

How do I stop Outlook from marking messages as read?

Select File> Options> Advanced. 2.In Outlook panes, select Reading pane 3. Uncheck the boxes to Mark items as read when viewed in the Reading Pane and Mark item as read when the selection changes.

How do I view HTML in Outlook for Mac?

How do I view the HTML in Outlook? In Microsoft Outlook, double-click to open an email. You'll see an “Actions” menu under the “Message” tab. Click on that menu and select the “Other Actions,” then click on “View Source” to see the HTML code.


2 Answers

Try:

tell application "Microsoft Outlook"
    set myMessages to selection
    repeat with aMessage in myMessages
        set aMessage's is read to true
    end repeat
end tell
like image 93
adayzdone Avatar answered Nov 14 '22 22:11

adayzdone


The above answer is great, if you want to select the message(s) to mark as read. but with Outlook on Mac putting Calendar invites in Deleted as "unread"...this version will run for you and can be set up to do it's thing from cron as often as you would like.

tell application "Microsoft Outlook"
    repeat with afolder in deleted items
        set aMsg to (every message of afolder where its is read is not true)
        repeat with aMessage in aMsg
            set aMessage's is read to true
        end repeat
    end repeat
end tell
like image 41
Tvstevey Avatar answered Nov 14 '22 22:11

Tvstevey