1 Reply Latest reply on Aug 31, 2009 11:21 AM by TSGal

    AppleScript references do not work correctly on hosted files

    jbarnum

      Summary

      AppleScript references do not work correctly on hosted files

      Description of the issue

      This simple AppleScript works (returns a valid ID) on a local FileMaker file: tell application "FileMaker Pro Advanced"set newRecord to create new recordID of newRecordend tell The same AppleScript fails on any file hosted by FileMaker Server, with FileMaker Pro Advanced 10.0v3 (Snow Leopard).  Here is the low-level event log produced by AppleScript editor:tell application "FileMaker Pro Advanced"create new record--> record id 126.0 of window "Test File (hermes.360works.com)"get ID of record ID 126.0 of window "Test File (hermes.360works.com)"--> error "Object not found." number -1728Result:error "FileMaker Pro Advanced got an error: Object not found." number -1728 from ID of record ID 126.0 of window "Test File (hermes.360works.com)" I believe that it's the server name in parentheses as part of the window name that is messing it up; just a hypothesis.