我正在尝试使用AppleScript自动执行Numbers和Quick2017之间的重复任务。
我想用数字表示当前选定单元格的内容,用该数值设置剪贴板,然后将该值粘贴到Quicken中的搜索字段中。
如何使用AppleScript做到这一点呢?
用于说明意图的示例伪代码:
tell application "Numbers"
activate
set myCellsValue to value of currently selected cell
set the clipboard to myCellsValue
end tell
tell application "Quicken 2017"
activate
tell application "System Events"
keystroke "f" using {command down}
delay 0.1
keystroke "v" using {command down}
end tell
end tell发布于 2018-02-04 23:26:18
你说对了90%。我不使用Quicken,但这适用于Microsoft Word:
tell application "Numbers"
activate
tell active sheet to tell application "System Events" to keystroke "c" using command down
end tell
tell application "Quicken 2017"
activate
tell application "System Events"
keystroke "f" using command down
delay 0.1
keystroke "v" using command down
end tell
end tellhttps://stackoverflow.com/questions/48609281
复制相似问题