Home > Designing and creating databases > Creating scripts to automate tasks > Scripting with Apple events (OS X) > Apple events error: "Apple event timed out" (-1712)
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: • You are using the FileMaker Pro Show event to find records in a large database • FileMaker Pro presents a dialog box waiting for the scripter's (user's) response • An event takes a long time to occur, such as opening a networked file when there is heavy network traffic. 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 secondsShow (every Record whose Cell "Product" contains "FileMaker Pro")end timeoutend tell