Applescript打开文件夹中的所有InDesign文件

Applescript打开文件夹中的所有InDesign文件,applescript,adobe-indesign,finder,Applescript,Adobe Indesign,Finder,我试图制作一个脚本,打开文件夹中的所有InDesign文件并对其进行编辑 目前正在尝试打开文件,以下是我所拥有的: tell application "Adobe InDesign CC 2015" open (every file of folder "test1" whose name ends with ".indd") end tell 但我得到了一个snytax错误: 应为“”,但找到“”。 InDesign不理解“文件夹的每个文件”。你使用的表达式是你会对查找者说的。InD

我试图制作一个脚本,打开文件夹中的所有InDesign文件并对其进行编辑

目前正在尝试打开文件,以下是我所拥有的:

tell application "Adobe InDesign CC 2015"
    open (every file of folder "test1" whose name ends with ".indd")
end tell
但我得到了一个snytax错误:

应为“”,但找到“”。

InDesign不理解“文件夹的每个文件”。你使用的表达式是你会对查找者说的。

InDesign不理解“文件夹的每个文件”。你使用的表达式是你会对查找者说的。

InDesign根本不知道什么是文件和文件夹

只有
查找程序
(和
系统事件
)了解文件系统

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
是桌面文件夹的一个子文件夹。

InDesign根本不知道什么是文件和文件夹

只有
查找程序
(和
系统事件
)了解文件系统

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
是桌面文件夹的子文件夹