如何在Photoshop脚本中为值创建输入字段

Sol*_*Sam 4 javascript photoshop

我正在使用Photoshop脚本,我已将动作转换为脚本,工作正常.我已使用如下变量将save另存为文件名:

var path="~/desktop/Images/";
var start ="a";
Run Code Online (Sandbox Code Playgroud)

并且保存路径设置如下:

desc1.putPath(cTID('In  '), new File(path + start + "001"));
Run Code Online (Sandbox Code Playgroud)

下一次保存将是:

desc1.putPath(cTID('In  '), new File(path + start + "002"));
Run Code Online (Sandbox Code Playgroud)

每次运行带有路径输入和启动值的脚本时,如何制作弹出框?

Sol*_*Sam 9

好吧,我发现了它.思想生病把它放在这里,以便它可以帮助别人.

  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"));
Run Code Online (Sandbox Code Playgroud)