Inspiring
December 18, 2023
Answered
util is undefined
- December 18, 2023
- 1 reply
- 566 views
I am tring to read a text file with adobe scripts I am doing it in photo shop using extend scripts in visual studio code. When i try to launch i am getting the following error. I am guessing it is missing the referance to the utilites but i dont know how to add them.
function readFileToText(input) {
//let file = input.files[0];
//Read file data into stream
var stmFileData = util.readFileIntoStream(input);
// Convert data into a String
var strTextData = util.stringFromStream(stmFileData);
alert(strTextData);
}
