Fixes for Script Manipulation Annoyances

Also added a contributed example script by @emdash