run-if-idle script