【发布时间】:2016-01-18 05:17:16
【问题描述】:
我需要帮助来更正下面的脚本,以自动完成接下来几周我必须完成的非常普通的复制/粘贴任务,而列表会有所不同。
我有一个通过我们公司网站的报告 WIKI,让我们可以加载客户端 IDs 以运行该客户端 ID 的报告。我有一个包含 1,300 个客户的列表,我需要在不同的几周内运行此报告,并将这些客户 IDs(当前位于 Excel 工作表中)复制/粘贴到 WIKI 中以运行这些报告。
当前工作流程: 从 Excel 复制客户端 ID,选择 Chrome 窗口并单击文本框,粘贴,单击选项卡,以便 WIKI 显示下一个文本框供我添加客户端 ID,返回 Excel 复制并重复... 1300 次。 ..
我找到了following site 并试图修改他们必须工作的代码,但我认为从那时起字典已经改变了。我试着看,但没能弄明白。
repeat 2 times
tell application "/applications/Microsoft Excel.app" to activate
tell application "System Events"
tell process "Microsoft Excel"
keystroke "c" using command down
end tell
end tell
delay 0.3
tell application "/Applications/Google Chrome.app" to activate
tell application "System Events"
tell process "Google Chrome"
keystroke "v" using command down
keystroke tab
end tell
end tell
delay 0.3
tell application "/applications/Microsoft Excel.app" to activate
tell application "System Events"
tell process "Microsoft Excel"
keystroke return
delay 0.4
keystroke "c" using command down
delay 0.3
end tell
end tell
delay 0.3
tell application "/applications/Google Chrome.app" to activate
tell application "System Events"
tell process "Google Chrome"
keystroke "v" using command down
keystroke tab
end tell
end tell
delay 0.3
end repeat
我必须每月运行这些报告并完成所有工作以正确配置这些客户端,以便它们在 WIKI 中拥有数据。
【问题讨论】:
-
老老实实告诉贵公司的 IT 人员创建一个 php 接口以通过 HTTP 上传数据
标签: excel applescript automator