var f = app.activeDocument.path; //var f = Folder(Folder.desktop+'/test'); f.execute();