2 Replies Latest reply on Sep 2, 2015 12:14 PM by Sirgalt

    Saving to a new folder


      I've spent hours trying to figure this out, and no Google search I've tried has solved my problem.


      I want to create a script that prompts a user for a company name and then creates a new folder, with that exact same company name, and saves the file, also with that company name, within that folder.


      Here's what I have so far:


      var companyname = prompt("Please enter the company name", "");

      var filename = companyname+".indd";

      var foldername = companyname;

      var myfolder = new Folder("/DriveLetter/Folder/2015/"+foldername); 




      This successfully creates a new folder in the "2015" folder, but the file saves in my personal directory.


      Thanks in advance for any help you can provide!