Matt Matt - 2 months ago 20x
AppleScript Question

Applescript open all indesign files in folder

Hello I am trying to make a script where it opens all indesign files in a folder and edits them.

Currently trying to open the files, heres what I have:

tell application "Adobe InDesign CC 2015"
open (every file of folder "test1" whose name ends with ".indd")
end tell

I get a snytax error Expected “,” but found “"”.


Indesign has no idea at all what files and folders are.

Only the Finder (and System Events) have knowledge about the file system

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

Consider that in the Finder the folder test1 is a subfolder of the desktop folder.