Skip to content

Instantly share code, notes, and snippets.

@mandrachek
Created March 24, 2015 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandrachek/322ef4583c1de56a4083 to your computer and use it in GitHub Desktop.
Save mandrachek/322ef4583c1de56a4083 to your computer and use it in GitHub Desktop.
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