Skip to main content
Participating Frequently
December 2, 2009
Question

New Folder

  • December 2, 2009
  • 3 replies
  • 857 views

Driving me crazy!!! This will be simple I am sure, I

have been working on a project and have everything working the way i want minus the folder

creations... this should be easy but i can't get my mac to let me create on on the Desktop. Shouldn't this work??


var myFolder = new Folder("~/Desktop/myFolder/");
myFolder.create();

This topic has been closed for replies.

3 replies

tjprinterAuthor
Participating Frequently
December 2, 2009

Started over with a new source after restarting and just typed this...

var myFolder = new Folder("~/Desktop/myFolder");
myFolder.create();

worked fine!!!!!!!!!!!!!!! 

Thanks for the help

December 2, 2009

Your script will only create a folder, not overwrite on that already exists. Could this be the case?

Inspiring
December 2, 2009

Your code works pretty good for me.

December 2, 2009

// Just remove the last slash from the folder path

var myFolder = new Folder("~/Desktop/myFolder");
myFolder.create();

tjprinterAuthor
Participating Frequently
December 2, 2009

Still doesn't work...