Just trying to read a CSV, as indicated in this post:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/read-a-txt-file/m-p/3781245
But keep getting that error, why?
var prompt = "Elegir cuadro de materiales"
var filter = "*";
var multi_select = true;
var selectedFile = File.openDialog(["Elegir cuadro de materiales"], filter, multi_select);
alert(selectedFile);
selectedFile.open('r');
var dataToGet = selectedFile.readln();
selectedFile.close();
2
Answers
Results that
openDialog
withmultiSelect
set to true, returns an array.So, this solves the issue:
You’ve solved your own problem, another way to do it is with a new File