2 Replies Latest reply on Jan 28, 2016 5:28 AM by ciceroc69199093

    Problem with Applescript and Indesign files


      Hi I am using this script :



      set demodoc to (choose file with prompt "Where is “Scripting Examples:chevalet Indesign?" of type {"indd"})

      tell application "Finder"

        set demofolder to (container of myDocument) as text

      end tell

      tell application "Adobe InDesign CS5"


      import data from file (demofolder & "Fusion.txt") ¬

        using prototype story "chevalet" into story "page"

      end tell

      But the problem is when I am testing it, the prompt is not able to see Indesign files.

      I tested several times with indt, .indd, InDd, idml, ...  but nothing is working.

      I don't really understand.

      I have actually Adobe InDesign CS6 and Mac OSX Yosemite.

      Can someone help me please?