← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #211228]: Mac: Getting FindFailed when using cron to run sikuli script

 

Question #211228 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/211228

RaiMan proposed the following answer:
On Mac latest since 10.6 cron and atrun are finally deprecated and
replaced by the launchd/launchctrl features.

The Apple docs say that a launch agent (controlled by a plist in
~/Library/LaunchAgents) should not use the GUI (which is ok for the
general purpose to not disturb the user), but it can use the GUI, which
in turn means: a process, that is triggered by a launch agent, has
access to the screen.

So on Mac the method to run Sikuli scripts at specific times is to use LaunchAgents.
There is even an app Lingon (AppStore, 4$), that allows to implement and control the LaunchAgents with a nice GUI (in my opinion, one does not really need it, since setting up the needed plist is not that complex)

A developer oriented doc on daemon/agents/background processing:
https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/Introduction.html#//apple_ref/doc/uid/10000172i-SW1-SW1

... and the content of the plist is described here:
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html%23//apple_ref/doc/man/5/launchd.plist

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.