在“运行AppleScript动作”中的以下代码应该可以解决这个问题:
on run {input, parameters}
set imgDestination to input's item 2
set imgSource to input's item 1
set imgNameFile to choose file with prompt {"Select file of image filenames:"}
set imageList to every paragraph of (read imgNameFile)
repeat with eachName in imageList
tell application "Finder"
set targetImageFile to item 1 of (get every file in folder imgSource whose name = (eachName as text))
duplicate targetImageFile to folder imgDestination
end tell
end repeat
return input
end run
我无法设计如何使Automator读取文本文件,并在选择文件夹时也记住它,因此我将选择带有图像文件名的文件作为AppleScript的一部分。
祝你好运,
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句