extendscript - selectDialog with address bar instead of dropdown with Photoshop script -
i'm writing custom script photoshop handle batch processing of images. have 2 input folders , output folder need specify. right i'm using select folders:
var inputfolder = folder.selectdialog("select folder of images process");
because i'm working on server pretty deep folder hierarchy, can real pain select through drop-down menu photoshop presents me in dialog.
it easier have folder selection dialog address bar , quick access panel this:
all other ps scripts i've been digging around in use folder.selectdialog
method set file paths variable. there reason this? if not, how can instruct photoshop second style of folder navigation dialog?
it doesn't appear adobe supports dialog folder selecting option.
there similar thread posted on adobe forums workaround suggested:
https://forums.adobe.com/thread/1094128
the solution suggested use savedialog
function instead of selectfolder
. gives folder dialog want, comes downside of having type dummy name filename path. says "save as" on top of dialog box, confusing.
here's offered:
by lilsmokie on nov 8, 2012 2:19 pm
var dsktop = folder.desktop; var dskpth = string(dsktop); var newspot = new file(dskpth+"/poop"); var selectedfolder = newspot.savedlg('select destination folder'); var illfilepath = selectedfolder.path; alert(illfilepath);
this opens dialog @ desktop. put "poop" or whatever in text field. there user can navigate ever. when save illfilepath have folder path. not perfect close enough me right now.
i've discovered can set starting location of selectdialog
using selectdlg
instead:
var outputfolder = folder(app.activedocument.path).selectdlg("select folder output images to:");
this gives control on starting location user doesn't have click through million dropdowns.
Comments
Post a Comment