Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Running scripts at all' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Running scripts at all
Authored by: Swany on Feb 25, '03 04:02:34PM

I can't get cron to run an Applescript at night: "User interaction not allowed." or "Applescript timed out."



[ Reply to This | # ]
Running scripts at all
Authored by: ClarkGoble on Feb 25, '03 07:28:11PM

You have to be logged in for the Applescript to work. This is always a problem calling Applescripts from Apache or cron. So if you have a shared machine where people are logging in or out the above hint won't work.

There are work arounds. Ideally just store the current date in a file somewhere and then check it in your cron script. In that way you just have a sh script rather than an Applescript.



[ Reply to This | # ]