if i use this and run it in the console it does not work. stmData = util.readFileIntoStream("/Users/art5/Desktop/00055-000-13.xml");
if i do the same thing but this stmData = util.readFileIntoStream(); I get an open window and navigate to the proper file and it works.
What am i missing about util.readFileIntoStream? Because when i give it a direct path it fails.
(optional) A device-independent path to an arbitrary file on the user's hard drive.
This path may be absolute or relative to the current document.
If not specified, the user is presented with the File Open dialog to locate the file.
If the cDIPath parameter is specified, this method can only be executed in privileged
context, during a batch or console event (or when the document is certified with a
I am using a trusted function app.trustedFunction
In your opinion having the user select the file is it the only possibility?
Because I am interested in having it get there automatically.