Hi efreetcs,
there are several ways.
One way is to check if your File exists:
var aFile = "~/Desktop/TestFolder/yourScript.jsx"; if (File(aFile).exists == false) { alert("yourScript.jsx does not exists"); } else { alert("yourScript.jsx exists"); }
Have fun