Created
March 24, 2015 12:47
-
-
Save mandrachek/322ef4583c1de56a4083 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run | |
end run | |
on idle | |
tell application "System Events" | |
if (get name of every application process) contains "Microsoft Error Reporting" then | |
tell application "System Events" to tell process "Microsoft Error Reporting" | |
activate | |
set box to checkbox "Restart Microsoft Lync" of window "Microsoft Error Reporting" | |
if value of box = 0 then | |
click box | |
end if | |
click UI element "Don't Send" of window "Microsoft Error Reporting" | |
log "Microsoft Lync Crashed" | |
end tell | |
end if | |
end tell | |
return 1 | |
end idle | |
on quit | |
continue quit | |
end quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment