Fantastic script!! I've never googled the solution to a problem, found the answer so simply and clear and implemented in 15 minutes!
Initially I got the “” could not be created on this disk. Use a different name, make more room on the disk, unlock it or use a different disk. error but once I stripped off the document path info and just put the filename directly in the temporary path it works a treat!
Thanks so much!