I have a script that can sometimes take hours to run. The part that takes the time is a shell command run via do shell script. Depending on what you are doing, it can take seconds, or hours. When its done, it also throws up a display dialog letting you know its complete.
Then this script runs for many hours, it ends with a timeout error. Is there a way I can see exactly what line triggered the timeout?
It shouldn’t be any line. Both of these commands, the do shell script and the display dialog after it, are in a block of with timeout of 259200 seconds, which is 3 days. This script I just ran took several hours. But not that long.
ALSO the dialog has a giving up after 300 seconds attribute so it doesn’t cause a timeout while its waiting for you to hit ok. And again, the dialog is inside the timeout block too.
So everything looks correct, and yet I still get a timeout error. Is there an error console I can use to dig deeper somehow?