Code: Select all
var fileLoc = "";
//alert("inside after effects");
if (app.settings.haveSetting("ImagesLLC Photo Montage", "ScriptLocation")) {
fileLoc = new File(app.settings.getSetting("ImagesLLC Photo Montage", "ScriptLocation"));
}
if(fileLoc.exists){
theFile = fileLoc;
}else{
var theFile = fileGetDialog("Please find the Montage Script...", "");
app.settings.saveSetting("ImagesLLC Photo Montage", "ScriptLocation", theFile.toString())
}
//var scriptFile = new File(theFile);
theFile.open();
eval(theFile.read());
alert(theFile);
theFile.close();