Streamline Document attachment script

* Reduce to minimal code
* Run attachment shell script in the BBEdit block (hoping that helps with it picking up changes)