【发布时间】:2013-11-21 07:15:05
【问题描述】:
我们有一个 samba 共享,我想从其中复制带有 applescript 的文件夹。这是我已经拥有的(安装工作):
mount volume "smb://samba.com/e_18_data11$"
delay 3
set sourcefolder to ("smb://samba.com/e_18_data11$/e_18_data11$/folder1/folder2" as POSIX file)
set localfolder to ("/Users/username/Dropbox/Test" as POSIX file)
tell application "Finder" to duplicate sourcefolder to localfolder
这仍然给我这个错误:
the routine can not edit objects of this class." number -10010
我尝试并结合了许多已经在 SO 上的解决方案,例如this solution
– OS X 10.9
【问题讨论】:
-
==> 将实际的源文件夹从 Finder 拖到您的 AppleScript 中。它应该将路径粘贴到脚本中。使用该路径作为源文件夹。我认为这应该可以解决问题。
标签: applescript mount finder