Home > Designing and creating databases > Creating scripts to automate tasks > Scripting with Apple events (OS X) > Apple events error: "Object not found" (-1728)
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. 2. Verify that the object exists. In some cases you have specified the object correctly and the "Object not found" error means that the object does not exist. For instance, if you are specifying a field on a layout check to see that the field exists and that it is on that layout. Also, when you use a Show command to find records and no records are found, the result will be "Object not found."