photoshop js load image code example
Example: photoshop script open file
var File = File.openDialog('Select File', function (f) { return (f instanceof Folder) || f.name.match(/\.csv$/i);} );
var File = File.openDialog('Select File', function (f) { return (f instanceof Folder) || f.name.match(/\.csv$/i);} );