AppleScript 填写文本字段

Kev*_*vin 4 applescript click popup

我尝试填充文本字段但不能

activate application "****"
tell application "System Events"
    tell process "****"
        tell text field 1 of window 1
            set value of text field 1 to "here is the text"
        end tell
    end tell
end tell
Run Code Online (Sandbox Code Playgroud)

Raj*_*mar 5

activate application "****"
tell application "System Events"
    tell process "****"
        set value of text field 1 of window 1 to "here is the text"
    end tell
end tell
Run Code Online (Sandbox Code Playgroud)

如果你想尝试的话,这对我有用。