Is there a reason why osascript would cease responding after a period of time ? I have an osascript call to an AppleScript which is hanging after a long time e.g. 30 minutes.
- The AppleScript starts a background process which processes data and sends results to a log file.
- The AppleScript monitors that process, checks the log file and shows a progress dialog with detail from the log.
- The AppleScript redisplays the progress dialog every 5 seconds until the process which updates the log file ceases.
The process which updates the log file can take a long time e.g. 45 minutes. So, the AppleScript which monitors that process needs to keep running all that time. However, the osascript process ceases to respond after around 30 minutes. The dialog stays visible but the mouse pointer is a spinning rainbow of death. It then is necessary to kill the osascript process.
Although the osascript has died, the process which updates the log file continues and concludes properly, when it has finished processing data.
Is there a reason why an osascript would just stop responding ?
Thanks.