Categories
Teaching course

Part- 2 Illustrator Scripting Creating folder using Javascript

Below is the code that will create a folder using javascript in illustrator script.

Suppose there is dir variable selected by user. (as shown here)

For MAC OS

path= dir.fsName;
new Folder(path+”/White”).create();

For WINDOWS OS

path= dir.fsName;
new Folder(path+”\\White”).create();

For different operating system in full path above is the code to create folder correctly. see the difference of slash and back slash.

FOR ANY EXTENSION / SCRIPT / PLUGIN WORK DON’T HESITATE TO LEAVE ME A MESSAGE OR CONTACT ME at mr.bunt@gmail.com