Check if a file exists in network dir (JS)
I've found an old post that has pointed me at:
if (myFile.exists){
alert("File Exists");
}
else
alert("File doesn't exist");
The problem is that when I use the path macname/volumes/dir/folder/folder/file.indd (which was created from variables) as myFile the script doesn't find a file that I know exists. All I get is the "File doesn't exist" alert.
Do I need to define myFile as being a string?
I'm still fumbling my way around JS, and converting Applescripts to JS to work cross-platform. Thanks in advance....
