시스템 이벤트 앱을 사용하여 메뉴 항목을 가볍게 클릭하여 GUI 스크립팅으로 해결할 수 있습니다.
꽤 긴 메뉴 참조로 끝나지만 작동합니다.
편집 :받은 편지함을 먼저 선택하는 방법을 추가했습니다.
tell application "Microsoft Outlook"
activate
if main windows is {} then -- no windows open
make new main window
end if
tell main window 1 to set view to mail view -- ensure its viewing mail
set the selected folder to inbox
end tell
tell application "System Events"
tell process "Microsoft Outlook"
click menu item "Apply All" of menu 1 of menu item "Apply" of menu 1 of menu item "Rules" of menu 1 of menu bar item "Message" of menu bar 1
end tell
end tell
, 폴더 트리의 일부를 (예를 들어,받은 편지함)에 필요 이를 위해 선택되어야합니다. – craig65535
@ craig65535 gui 스크립팅이나 Outlook에서 선택할 수도 있습니다. – adamh
추가적으로 작동하려면 뭔가를 선택해야합니다. – adamh