【发布时间】:2015-01-20 20:26:40
【问题描述】:
今天是我知道 AppleScript 存在的第一天,所以如果这是一个愚蠢的问题,我深表歉意。我已经搜索并找不到有关如何使用 AppleScript 简单移动文件的答案
我需要做的就是将文件从 ~/Downloads/blank.potx 移动到 ~/Library/Application Support/Office/User Templates/My Templates
这就是我现在在 AppleScript 中的内容:
tell application "Finder"
move "~/Downloads/blank.potx" to "~/Library/Application Support/Microsoft/Office/User Templates/My Templates/blank.potx"
end tell
当我运行它时,它给了我一个错误:
error "Finder got an error: AppleEvent handler failed." number -10000
再次,使用 AppleScript 的第一天,我迷路了。你能提供的任何帮助都会很棒。
如果有更好的方法,请告诉我。
谢谢!
【问题讨论】:
标签: applescript