~ / Library / LaunchAgents / com.stackoverflow.open.desktop.task.timer.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.stackoverflow.open.desktop.task.timer</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
<string>-a</string>
<string>Desktop Task Timer LE</string>
</array>
<key>StartInterval</key>
<integer>900</integer> <!-- every 900 seconds -->
<key>RunAtLoad</key> <!--run on the 0th second-->
<true/>
</dict>
</plist>
launchctl load ~/Library/LaunchAgents/com.stackoverflow.open.desktop.task.timer.plist
ou sair e voltar.
crontab -e
*/15 * * * * open -a "Desktop Task Timer LE"
- Você pode usar um editor diferente, como
EDITOR=nano crontab -e
-
crontab -l
lista as tarefas atualmente agendadas -
crontab /path/to/file
atualiza a tabela de um arquivo externo