outlook - Use AppleScript to block a sender -
i block spammer's address using applescript.
with inbox message selected, execute script:
tell application "system events" click menu item "block sender" in menu item "junk mail" in menu bar item "message" in menu bar 1 of application process "microsoft outlook" end tell
which results in error:
system events got error: can’t menu item "junk mail" of menu bar item "message" of menu bar 1 of application process "microsoft outlook".
the junk mail
menu has submenu:
the applescript editor has been granted access control computer:
what missing?
i can't test outlook, missed tell menus "message" , "junk mail" of menu items:
tell application "system events" click menu item "block sender" in menu "junk mail" in menu item "junk mail" in menu "message" in menu bar item "message" in menu bar 1 of application process "microsoft outlook" end tell
Comments
Post a Comment