Skip to content

Instantly share code, notes, and snippets.

@lm913
Created December 23, 2015 15:25
Show Gist options
  • Save lm913/b732c10f91f6fb10a724 to your computer and use it in GitHub Desktop.
Save lm913/b732c10f91f6fb10a724 to your computer and use it in GitHub Desktop.
Creates a New Path within a pre-preprocessing script
function psNewPath(pathName){
var doc = activeDocument;
try{
doc.pathItems.add(pathName, new Array()); //variable must be string
}
catch(e){
doc.pathItems.add(pathName+" 001", new Array()); //variable must be string
}
doc.pathItems.getByName(pathName).deselect();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment