我正在尝试完全自动化将图像导入iPhoto的工作流程。最后一块拼图是处理重复图像。目前我在Applescripts import命令中看不到不导入副本的方法。因此,当重复数组出现时,所有工作流都会停止,iPhoto会等待输入。
有没有办法解决这个问题?
发布于 2014-10-08 00:02:32
您将需要编写此脚本。下面是一小段在applescript编辑器中工作的代码。对automator进行相应的调整...
set iFolder to (choose folder)
set iFiles to (list folder iFolder)
tell application "iPhoto"
repeat with iFile in iFiles
try
set pFound to get (every photo of album "Photos" whose image filename is iFile)
end try
if length of pFound is not 0 then
log ("File '" & iFile as text) & "' exists..."
# Move or delete it here
end if
end repeat
# Continue with import
import from (iFolder as alias)
end tellhttps://stackoverflow.com/questions/26166984
复制相似问题