1、判断本脚本是否重复运行



my_count = 0;
ne = engines.myEngine();
my_path = ne.mTags.get("execute_path") + "/" + ne.source;
engines.all().forEach(e => {
path = e.mTags.get("execute_path") + "/" + e.source;
if(path == my_path) my_count++;
});
if (my_count > 1) toast("本脚本重复运行");