title: Using folder pathname, save all image files and file names
body: <p>I trying to create a 360 degree animation from In Design-to-HTML conversion.</p>
  
  <p>I get the folder name, and inside that folder are 50 to 80 images. I need to save those images in my folder, and to save each image name inside the script.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>var doc = app.activeDocument;
  for (var j =0; j&lt; doc.rectangles.length; j++) {  
      var nav = doc.rectangles[j].extractLabel("",);
      alert("Nav length "+nav.length);   
      for(var nav_get_name =0; nav_get_name &lt; nav.length; nav_get_name++) {
         alert(nav[nav_get_name][0]+"="+nav[nav_get_name][1]);      
         var path_name =  (nav[2][1]);          
      }
  }
  </code></pre>