2016-08-21 10 views
0

폴더의 모든 InDesign 파일을 열고 편집하는 스크립트를 만들려고합니다. AppleScript로 폴더의 모든 InDesign 파일 열기

은 현재 여기에 파일을 열려고 시도하는 것은 내가 무엇을 가지고 :

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

하지만 난 snytax 오류 얻을 :

Expected “,” but found “"”. 

답변

3

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 바탕 화면 폴더의 하위 폴더 인 것을 고려 파일 시스템에 대한 지식을 가지고.

+0

작품을 고맙게 생각합니다. – Matt

3

InDesign에서 "폴더의 모든 파일을"이해하지 않습니다. 사용중인 표현은 Finder으로 말합니다.