option to save before running the script

this might be necessary due to a bug in indesign that causes a crash
upon deleting links