我正在尝试制作一个脚本,打开文件夹中的所有InDesign文件并编辑它们。
当前正在尝试打开文件,下面是我所拥有的:
tell application "Adobe InDesign CC 2015"
open (every file of folder "test1" whose name ends with ".indd")
end tell
但是我得到一个snytax错误:
Expected “,” but found “"”.
InDesign根本不知道什么是文件和文件夹
只有Finder
(和System Events
)知道文件系统
tell application "Finder" to set indesignFiles to (files of folder "test1" whose name extension is "indd") as alias list
tell application "Adobe InDesign CC 2015"
open indesignFiles
end tell
考虑Finder
中test1
文件夹是desktop文件夹的子文件夹
InDesign不理解"every file of folder"。你正在使用的表达式是你要对查找器说的话。