我尝试填写文本字段但不能
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
答案 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
如果您想尝试,这对我有用。