我正在尝试制作一个基本的applescript,它会告诉打开的应用程序在收到新推文时按下上传。该脚本给了我标题中的错误,并在我编译它时突出显示了“按钮”这个词。谁能告诉我我哪里出错了?
重复
tell application "safari"
set URL of tab 1 of window 1 to "https://twitter.com/i/connect"
delay 5
if text of tab 1 of window 1 contains "1 new interaction"
tell application "Arduino" to activate
click button "Upload" of window 1
delay 1
end if
end tell
结束重复