Changes between Version 2 and Version 3 of jazz/18-03-30


Ignore:
Timestamp:
Mar 30, 2018, 2:05:28 PM (6 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/18-03-30

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