Do AppleScript incomplete typing
Bill Vlahos
bvlahos at mac.com
Tue Mar 4 19:41:34 EST 2025
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
More information about the use-livecode
mailing list