Applescript Run by Cron Error

Joined
Feb 7, 2021
Messages
104
Reaction score
4
Points
18
Hi folks. I'm using my crontab to run a Ruby script that calls an applescript. The applescript is a simple command:

Code:
osascript -e 'tell app \"System Events\" to display alert \"Northern Lights Prediction Strong\" message \"#{ r }\"'"

Getting a timeout on this, and I'm not sure why. A test cron brings it up fine, but I'm thinking the OS doesn't like that window staying open. Is this what happens with hanging dialog boxes?

Cheers
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top