AppleScript填写文本字段

时间:2015-04-23 13:45:42

标签: popup click applescript

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

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

1 个答案:

答案 0 :(得分:2)

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

如果您想尝试,这对我有用。