#target "InDesign" // run script without install to ScriptPanel (function(){ var script_path = File.openDialog(); try { script_path ? $.evalFile(script_path) : exit(); } catch(e){ alert(decodeURI(script_path) + "\n" + e); }; })();