随着 macOS Catalina 放弃对 Aperture 的支持,我需要将我的资料库移动到不同的应用程序。Mylio 有一个很棒的导入工具,它可以继承几乎所有的库结构和元数据,但会丢失一些调整。为了保留这些,我正在尝试编写一个 Apple 脚本来导出我的库中的所有图像(应用了调整),并在删除原始图像之前将它们重新导入到同一个项目中。
我想我几乎有了第一部分,导出所有图像。
tell application "Aperture"
tell library 1
set projects to (get every project)
repeat with i from 1 to count of projects
tell (item i of projects)
export its every image version naming folders with folder naming policy ¬
"Project Name" using export setting ¬
"JPEG - Original Size" to (choose folder with prompt "Choose an export folder")
end tell
end repeat
end tell
end tell
但是,当我尝试运行此脚本时,我不断收到错误消息
apertureExportImport.applescript:704:712:
execution error: Aperture got an error: Can’t make {project id "1ixjjya6T+Sb3pFmhRK8Fg"} into type project. (-1700)
我想问题出在网上,set projects to (get every project)
但我在网上找不到任何例子来弄清楚这里还有什么要写的。