I have a script that needs to run on both Windows & Mac, and was planning on using something like this (note that the if-condition is just to illustrate what I mean) ;
Code: Select all
if ("Windows") {var testFolder = new Folder("file://///SERVERNAME//Storage//Resources//Test");}
if ("Macintosh") {var testFolder = new Folder("~Storage//Resources/Test");}
var fileList = testFolder .getFiles(/\.(jpg|tif|psd|bmp|gif|png|)$/i);
Thanks!