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()
}
@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