Copy link to clipboard
Copied
From a script I try to open a file at my synology server
var aFile = File("\\myserver\files\myfile.pdf");
app.open(aFile);
I am getting
the specified file could not be opened because it could not be found
Any ideas why?
( The file is opened using a recorded action)
Hi,
your code is not working but point me to the correct direction!
I just change the backslashes from \\ to //
var aFile = File("//myserver/files/myfile.pdf");
app.open(aFile);
Thanks!
Copy link to clipboard
Copied
try this code, just Change the path
var aFile = new File("S:/myserver/folder/nameFile.pdf");
app.open(aFile );
Copy link to clipboard
Copied
Hi,
your code is not working but point me to the correct direction!
I just change the backslashes from \\ to //
var aFile = File("//myserver/files/myfile.pdf");
app.open(aFile);
Thanks!