AnsweredAssumed Answered

FM12 Floating Window breaks AppleScript "set cell"

Question asked by Jason Wood on Apr 15, 2012
Latest reply on Apr 15, 2012 by Jade


FM12 Floating Window breaks AppleScript "set cell"


I expected AppleScript to operate on the window with focus, but it seems it operates on the front-most window regardless of which one has been clicked into. This means that the following statement won't work on your current window if you also have a floating window open on the screen that does not have the "fieldName" field.

set cell "fieldName" of current record to "hello, world!"

This results in an "object not found" error.

How would I work around this behaviour? eg: can I expand the above statement to include the name of the window?