Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 438
Apple events error: "Create failed. Invalid data was supplied" (-17007)
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 seconds
Show (every Record whose Cell "Product" contains "FileMaker Pro")
end timeout
end tell
Apple events error: "Expected expression but found unknown
token"
This AppleScript error message can occur when smart quotes are used instead of straight quotes in
a script statement. The Perform AppleScript script step will compile statements with straight quotes
only.
This may be an issue when you copy a script from a word processor that uses smart quotes and
paste it into the script text area of the Specify AppleScript window. This may also be an issue when
using the field value option in the Specify AppleScript dialog box (your AppleScript is in a
FileMaker
Pro field). If this is the case, turn smart quotes off (in File Options) to avoid the error.
Apple events error: "Invalid object containment" (-1723)
This error alerts you that an object may not have been specified correctly according to the
FileMaker
Pro object containment hierarchy. The object hierarchy tells you how FileMaker Pro
objects are related. For instance, fields are a subset of records but not menus; menus can belong
only to an application, not to a window or database.
To correct this error: Examine the relationship of the objects you have specified and compare them
with the containment hierarchy.
The containment hierarchy can be found in the FileMaker Pro event and object dictionary accessible
with the AppleScript Script Editor.
Apple events error: "Object not found" (-1728)
This is one of the most frequent and generic error messages. It alerts you that an object may not
have been referenced correctly.
To correct this error:
1. Make sure that references to fields, records, databases, and layouts are spelled correctly.