How to create input fields for values ​​in Photoshop scripts

I work with Photoshop scripts and I converted the action to a script that works fine. I defined persistence as a file name with such variables:

var path="~/desktop/Images/"; var start ="a"; 

and the save path is set as follows:

 desc1.putPath(cTID('In '), new File(path + start + "001")); 

and the following save will be:

 desc1.putPath(cTID('In '), new File(path + start + "002")); 

how can I create popups every time I run a script with path inputs and initial values?

+4
source share
2 answers

Ok i found this. Thought he put it here so that he could help others.

  var Path= Folder.selectDialog("Select folder to save"); var Start =prompt("Layer Name","","Input Layer Name"); desc1.putPath(cTID('In '), new File(Path + "/" + Start + "001")); 
+9
source

really helps Thanks dude! :) .....

0
source

All Articles