Hello Michael,
Thks again for your help.
I will try to post it but it is quite long... Can I send it directly to you as private message ?
I actually made some progress.
On mac OS, as soon as I removed a file in my working folder. I get :
Error: Cannot open the file because the open options are incorrect"
-> var document = open(fileList[0]);
I tried to modified var document = open(fileList[0]); to var document = open(fileList[1]);
Then it works....(it fails somewhere else because of the same issue but ...)
I will try on Win today and Keep you noticed.
Thks