system
3
I tried this with launchd and it’s working fine. The problem is to set up the launchd agent. (I used the ‘Lingon’ application, but it’s not free.)
Here’s an example plist file to set up a schedule for 13:00 each day of the Download directory.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>Avast scan</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
<string>-a</string>
<string>/Applications/Avast.app/Contents/MacOS/Avast</string>
<string>/Users/kenta/Downloads</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>13</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</dict>
</plist>
More info here: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html
or by googling.