Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create input fields for values in Photoshop scripting

I'm working with Photoshop scripting and I have converted action to script which works fine. I have defined the save as file name with a variables like this:

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

and the saving path is set like this:

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

and the next save will be:

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

how do I make pop up box every time I run the script with the inputs of the path and start values?

like image 660
Solomon Sam Avatar asked Jul 01 '12 08:07

Solomon Sam


1 Answers

ok i found it out. Thought ill put it here so that it might 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"));
like image 131
Solomon Sam Avatar answered Sep 27 '22 23:09

Solomon Sam