【发布时间】:2014-01-09 20:41:37
【问题描述】:
set query to text returned of (display dialog "Enter Query" default answer "" buttons {"Input", "Cancel"} default button 1)
open location "http://www.soundcloud.com/"
delay 1
tell application "System Events"
key code 48
end tell
delay 1
query
所以我正在尝试制作一个applescript:
1) 通过对话框提示输入数据
2) 打开网页
3) 按 Tab 键进入第一个文本框
4) 粘贴步骤 1 中的数据
我已经知道如何进入第 4 步,但是当我打印查询变量时,它只会在 AppleScript 中而不是网页中打印。
【问题讨论】:
标签: automation applescript copy-paste paste