2016-08-21 26 views
0

フォルダ内のすべてのInDesignファイルを開いて編集するスクリプトを作成しようとしています。現在ここで、ファイルを開こうとするとフォルダ内のすべてのInDesignファイルを開くAppleScript

は私が持っているものです。

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に伝えるものです。

関連する問題