10 Replies Latest reply on Jul 6, 2016 8:50 AM by DBarranca

    Unable to create Folder -object in JS - only works in JSX

    Heimdaal Level 1

      I'm making a Photoshop panel and I have a drop-down menu that I want to populate with elements based on the number of files in a folder. However, for reasons unknown to me I seem to be completely unable to create Folder-objects in the javascript file. I've tested the below three lines of code both in my JSX file and my JS file. In the JSX one it works as it should: I get an alert dialog printing out the temp/dummy name of the folder. In JS though the entire script comes to a halt after the row creating the folder. Why is this?

       

      alert("trying to make folder...");

      var lol = new Folder();

      alert(lol);