Some built-in examples of possibly-useful scripts are distributed with QuPath under Automate → Show sample scripts. These can then be opened up in a script editor and run or modified as required. The ...
Hashbang #!/usr/bin/env bash #!/usr/bin/bash asumes it's always installed in /bin, which can cause issues. 3 ...