creating new folders

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

genekogan

creating new folders

Post by genekogan »

Hi all,

Is it possible to create a new subfolder in another folder in a script? Thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Mike Hale

creating new folders

Post by Mike Hale »

Code: Select allvar myDesktop = new Folder('~/desktop');
var myNewFolder = new Folder(myDesktop+'/myNewFolder');
if(!myNewFolder.exists) myNewFolder.create();
genekogan

creating new folders

Post by genekogan »

thanks!
jigsaw

creating new folders

Post by jigsaw »

Hi

Can we create a folder in the current location.
EG: When we are in server:
Nav:/crop/
This is will be dynamic, wherever we go and run the sript; it should create a new folder in the same location itslef.

Is this possible mate.