| 12 | |
| 13 | == Mac OS == |
| 14 | |
| 15 | * cron job 寫法還是跟 linux 一樣 |
| 16 | {{{ |
| 17 | ~$ crontab -l |
| 18 | 0 14 * * * osascript -e 'display notification "checking traffic routes" with title "Check Google Maps"' |
| 19 | 0 18 * * * osascript -e 'display notification "checking traffic routes" with title "Check Google Maps"' |
| 20 | }}} |
| 21 | |
| 22 | * Mac OS 的 `notify-send` 指令有點不一樣,要靠 `osascript` 執行 `AppleScript` |
| 23 | {{{ |
| 24 | OSASCRIPT(1) BSD General Commands Manual OSASCRIPT(1) |
| 25 | |
| 26 | NAME |
| 27 | osascript -- execute OSA scripts (AppleScript, JavaScript, etc.) |
| 28 | |
| 29 | SYNOPSIS |
| 30 | osascript [-l language] [-i] [-s flags] [-e statement | programfile] [argument ...] |
| 31 | }}} |