Apple events error: "Apple event timed out" (-1712)
This error can happen when an event takes an unusually long time to complete. If an event takes longer than two minutes, the Apple Event Manager reports a time-out error. This error can sometimes be generated when:
To prolong the amount of time AppleScript waits for a response: Use the "with timeout" statement.
An example of such a statement that increases the wait time to five minutes is:
tell application "FileMaker Pro"
with timeout of 300 seconds
Show (every Record whose Cell "Product" contains "FileMaker Pro")
end timeout
end tell