Skip to content

Instantly share code, notes, and snippets.

@theMikeD
Created February 14, 2015 18:37
Show Gist options
  • Save theMikeD/b802d7b12f599c5f7707 to your computer and use it in GitHub Desktop.
Save theMikeD/b802d7b12f599c5f7707 to your computer and use it in GitHub Desktop.
Photoshop script to create a folder if it doesn't already exist
#target photoshop
// Mini-Script to create a folder if it doesn't already exist.
// This one requires editing by the end user.
// (c) Mike Dickson www.photoshoptools.ca
// Licensed under the GPL
// You will need to edit this location for your own uses
var f = new Folder("~/Desktop/sRGB Blog Images");
if ( ! f.exists ) {
f.create()
}
@schroef
Copy link

schroef commented Jan 5, 2021

@theMikeD
Super nice! I was looking for something simple and easy. Someone asked if a favor in this "Layers to Files" version. The OP was wondering if the layers could exported to folder names given at the end of the layername. The example given uses numbers, so currently i only implemented that. But it works flawless with you little function.

If you need a copy let me know

@frankrolf
Copy link

Thank you! Of course, this also works in an InDesign script :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment