小编Jam*_*Vth的帖子

使用applescript在finder中移动文件

我只想将图像从一个文件夹移动到另一个文件夹,替换已经存在的图像:

tell application "Finder"
      copy file "/Users/xx/Documents/img.jpg" to folder "/Users/xx/Documents/State"
   end tell
Run Code Online (Sandbox Code Playgroud)

当我运行它时,我收到一条错误消息

Finder出错:无法将文件夹[path]设置为文件[path]"."文件夹[path]中的数字-10006

请帮我!

applescript finder

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

applescript ×1

finder ×1