【发布时间】:2019-10-31 21:21:45
【问题描述】:
随着 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) 的问题,但我在网上找不到任何示例,可以从中找出还需要在这里写什么。
【问题讨论】:
标签: applescript dam