publish script edit