将Excel中的数据复制/粘贴到网站表单中

将Excel中的数据复制/粘贴到网站表单中,excel,applescript,automator,Excel,Applescript,Automator,我需要帮助更正下面的脚本,以自动化一个非常平凡的复制/粘贴任务,我必须在接下来的几周内使用不同的列表来完成该任务 我在公司网站上有一个报告WIKI,允许我们加载客户端ID以运行该客户端ID的报告。我有一个1300个客户端的列表,我需要在不同的星期运行该报告,并将Excel工作表中当前的这些客户端ID复制/粘贴到WIKI中以运行这些报告 当前工作流: 从Excel复制客户端ID,选择Chrome窗口并单击文本框,粘贴,单击tab,以便WIKI显示下一个文本框,以便我添加客户端ID,返回Excel复

我需要帮助更正下面的脚本,以自动化一个非常平凡的复制/粘贴任务,我必须在接下来的几周内使用不同的列表来完成该任务

我在公司网站上有一个报告WIKI,允许我们加载客户端ID以运行该客户端ID的报告。我有一个1300个客户端的列表,我需要在不同的星期运行该报告,并将Excel工作表中当前的这些客户端ID复制/粘贴到WIKI中以运行这些报告

当前工作流: 从Excel复制客户端ID,选择Chrome窗口并单击文本框,粘贴,单击tab,以便WIKI显示下一个文本框,以便我添加客户端ID,返回Excel复制并重复。。。1300次

我找到了,并试图修改代码,他们必须工作,但我认为字典已经改变了。我试着去看,但一直没能弄明白

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中拥有数据。

问题是,当AppleScript只需要名称时,您使用了应用程序的目录,如下所示:

repeat 2 times
tell application "Microsoft Excel" to activate
tell application "System Events"
    tell process "Microsoft Excel"
        keystroke "c" using command down
    end tell
end tell
delay 0.3
tell application "Google Chrome" 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 "Microsoft Excel" 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 "Google Chrome" 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

希望这有帮助

诚实地告诉你公司的IT人员创建一个php接口,通过HTTP上传数据