When I run the following script for the first time, I get an error (the file don't exist or you don't have the access or the file is use by another application) [InDesign CC 2014 v10.0].
If I run it again it works. Do you have an idea to fix this ?
var myFileArray= new Array;
var OutPutFile1 = new File("~/Documents/myfile1.txt");
var OutPutFile2 = new File("~/Documents/myfile2.txt");
// create and write files
OutPutFile1.encoding = "UCS-2";
OutPutFile1.open( "w" );
OutPutFile2.encoding = "UCS-2";
OutPutFile2.open( "w" );
//push files in array
//load place gun
Retrieving data ...