How do I save a file with batchPlay to the temporary folder?

Batch play does not throw an error AFAIK. It return an array of responses for each descriptor. If there’s an error, last item of that response array (matching descriptor index) will hold the error message. If you want it to throw an error, you have to do it yourself.

Check this awesome snippet how to continue BP on error and there you can find how error is handled. And one comment bellow I posted a bit improved part of that snippet.

Sorry, but this won’t solve your initial problem