2 Replies Latest reply on Apr 9, 2009 8:58 AM by Peter Kahrel

    Applescript to JavaScript?

    littlemookie Level 1

      Hi there,

       

      Is there anyone that can convert this Applescript to JavaScript or if there is a JavaScript equivalent?

       

      ********

       

      tell application "Adobe InDesign CS3"

       

      set properties to {find text preferences:nothing, change text preferences:nothing}

       

      set properties of find change text options to {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}

       

      set properties of find text preferences to {applied font:"STEInfoText", font style:"Regular"}

       

      set properties of change text preferences to {applied font:"Myriad Pro", font style:"Regular"}

       

      change text document 1

       

      end tell

       

      ********

       

      Also, is it possible to add 'include paragraph styles:true' to the 'set properties of find change text options to {.....' bit (in JavaScript)?

       

      Thanks again to anyone who can help on this one?

       

      LittleMookie