I am using 14.7.7 version. The script below all of a sudden stopped working. it is designed to do a ‘Send and Receive all’. I can not figure out why and maybe someone here has an idea.
The error I get is:
error “System Events got an error: AppleEvent timed out.” number -1712
tell application "System Events"
tell application "Microsoft Outlook" to activate
tell application "Microsoft Outlook"
if it is running then
activate
end if
tell application "System Events"
keystroke (ASCII character 107) using command down
end tell
end tell
end tell
I don’t know if this will fix your problem (there could be some other underlying issues that’s causing it to slow down in the first place) but to stop getting the ‘timed out’ error you can encase your code in a block like this:
with timeout of 600 seconds
--{CODE THAT SLOWS EVERYTHING DOWN}--
end timeout
Now your script will keep trying to make it happen for a whole ten minutes before giving up instead of the default of two