因此,我有一个Applescript帮助为照片命名,以便将数据分配到唯一ID。由于我们正在使用Mac,因此这是在AppleScript中完成的。这很好用,但它只适用于一台机器。现在需要的是在多台机器上工作。我想要做的是将照片放在我们的服务器上,让客户端机器从那里对文件夹执行操作。
我遇到的问题是脚本未对用户进行身份验证,即使信息正确,也不会运行脚本。我这样做了吗?
tell application "Finder" of machine "eppc://user:password@server.local"
set renameFiles to the selection
set inventoryFiles to every file in folder (((path to documents folder) as text) & "Inventory Photos")
set currentIndex to the count of inventoryFiles
repeat with i from 1 to the count of renameFiles
set currentFile to (item i of renameFiles)
set new_name to ((10000 + currentIndex + i) as text) & ".jpg"
set name of currentFile to "a" & new_name
end repeat
end tell
感谢您的帮助