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:

enter image description here

the applescript editor has been granted access control computer:

enter image description here

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -