Created
February 14, 2015 18:37
-
-
Save theMikeD/b802d7b12f599c5f7707 to your computer and use it in GitHub Desktop.
Photoshop script to create a folder if it doesn't already exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() | |
} |
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
@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