Applescript 将网络文件夹添加到finder收藏夹

Applescript 将网络文件夹添加到finder收藏夹,applescript,finder,Applescript,Finder,我正在尝试编写一个apple脚本,从服务器添加一个特定文件夹,该文件夹已映射到finder中的收藏夹部分 到目前为止,我得到的是: tell application "finder activate open "path to server" tell application :System Events" keystroke "t" using {command down, control down} end tell end tell 我相信问题出在“服务器路径”上,我不

我正在尝试编写一个apple脚本,从服务器添加一个特定文件夹,该文件夹已映射到finder中的收藏夹部分

到目前为止,我得到的是:

tell application "finder

activate

open "path to server" 

tell application :System Events"

keystroke "t" using {command down, control down}

  end tell

end tell
我相信问题出在“服务器路径”上,我不需要将打开的位置放在收藏夹部分


结果是错误“finder出现错误:Handler无法处理此类对象。

您遇到的错误是什么?结果是错误“finder出现错误:Handler无法处理此类对象。最好用该错误编辑您的原始帖子。如果您能显示您正在使用的实际路径,可能会有人在此提供帮助。另外,看起来您已经在这里的浏览器中键入了该脚本,它缺少一些引号等。最好从ScriptEditor中剪切和粘贴