1 Reply Latest reply on Apr 27, 2011 6:48 AM by John Hawkinson

    How to use "WHOSE" concept in Javascript

    csm_phil Level 4

      Hi Scripters,


      I have one question about the difference in between Applescript & Javascript?

      My question is about this "WHOSE" concept in Javascript when compared as of to Applescript usage which made it very simple.


      The below mentioned Applescript code will select the entire page items in page 1 of document 1 whoever omiting those items whose geometric bounds are less than 0.


      tell application "Adobe InDesign CS4"

           set selection to (every page item of page 1 of document 1 whose (item 1 of geometric bounds is not less than 0))

      end tell


      Here in this above mentioned code I have used "WHOSE" concept to omit some specific page items, however using javascript it is not possible to use this WHOSE concept to simply the Javscript code.