AppleScript references do not work correctly on hosted files
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.
Thank you for your post.
I have forwarded your post to our Development and Software Quality Assurance (Testing) department for review and confirmation. When I receive information, I will let you know.