Code: Select all
//theFile vaiable is a path stored in the preferences
var sString = theFile.absoluteURI.replace(/\//g, "//");
var runString = '"open '+sString+'"';
//this line does not work
system.callSystem(runString);
//this line works but is not scalable
system.callSystem("open ~/Desktop/PS_Montage_DVD_v6.jsx");