Bernd, That fixed it! Thank you so much. I’ll test it further, but it is working consistently so far.
Here is the final script. I put the delay before the keystroke command. set the itemDelimiter to tab put "tell application " & quote & "System Events" & quote & return &\ "delay 1" & return &\ "keystroke " & quote & item 1 of field "Reference" & quote & return &\ "end tell" into AScript putText AScript Bill Vlahos > On Mar 4, 2025, at 4:22 PM, Niggemann, Bernd wrote: > > Bill Vlahos wrote: >> This syntax doesn’t work. > >> set the itemDelimiter to tab >> put "tell application " & quote & "System Events" & quote & return &\ >> "keystroke " & quote & item 1 of field "Reference" & quote & return &\ >> "delay 1 " & quote & return &\ >> "end tell" into AScript >> putText AScript > > > The quote after "delay 1" keeps this from compiling > > Try > ------------------- > put "tell application " & quote & "System Events" & quote & return &\ > "keystroke " & quote & item 1 of field "Reference" & quote & return &\ > "delay 1 " & return &\ > "end tell" into AScript > ----------------------- > This compiles, but if it solves the problem I do not know. > > Kind regards > Bernd _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode