Am using this script to download documents. a = attached. True = it downloads into my default download directory. False = opens in the browser (pdf's at least).
You can also find more information if you go to to the web scripts information page. You can find it from the list at http://<your sever>:8080/alfresco/service/index/uri/ .