尝试使用AppleScript
问题描述:
tell application "Finder"
make new folder at "iCloud Drive: Documents" with properties {name:"my Folder"}
end tell
错误信息来创建特定的位置文件夹时收到错误
error "Finder got an error: AppleEvent handler failed." number -10000
系统概述
Macbook Pro:MacOS Sierra 10.12.6
答
iCloud Drive
不是物理磁盘。只需使用标准documents folder
set documentsFolder to path to documents folder
tell application "Finder"
make new folder at documentsFolder with properties {name:"my Folder"}
end tell
新来的AppleScript和使用这项服务大力发布之前,研究可能的解决方案教训了最后一次。我不知道我会在哪里了解到我无法设置iCloud路径,因为它不是物理磁盘。一旦你说出来,它就非常有意义,但是我从来没有想过这件事。感谢您的帮助!我感谢你的时间和考虑。 –