Real World Adobe InDesign CS4- P25: The book uses Robert Slimbach’s Minion Pro, an Adobe OpenType face, which was particularly useful when moving files across platforms. Code samples are set in Lucas de Groot’s TheSansMonoCondensed. A few other fonts were used for example characters. | 708 REAL WORLD ADOBE INDESIGN CS4 JavaScript Visual Basic The following script fragment shows the heart of our NINA drawing script for the complete script go to David s web site see Where to Get the Scripts in this Chapter earlier in this chapter . function myDrawNina myNumberOfLines a_pulse b_pulse myLength myClosedPath var cur_x cur_y var myAnchor new Array 2 var myArray new Array Rather than draw the entire path point-by-point we ll fill an array and then use it to fill in all of the point locations at once using the entirePath property. for var myCounter 0 myCounter myNumberOfLines myCounter cur_x -2 a_pulse myCounter myNumberOfLines -2 b_pulse myCounter myNumberOfLines myLength cur_y -2 a_pulse myCounter myNumberOfLines -2 b_pulse myCounter myNumberOfLines myLength myAnchor cur_x cur_y myAnchor var myPage var myGraphicLine undefined 1p 1p var myPath o Now set the entire path to the contents of the array. myArray if myClosedPath true else Label the graphic line with the parameters used to create it. number_of_lines myNumberOfLines a_pulse a_pulse b_pulse b_pulse The following script fragment shows the heart of our NINA drawing script for the complete script go to David s web site see Where to Get the Scripts in this Chapter earlier in this chapter . As usual _ indicates a line break in this layout do not break the line or type the character . Function myDrawNina myInDesign myNumberOfLines a_pulse b_pulse _ myLength myClosedPath pi Set myDocument .