AppleScriptで取得する
次のコマンドを実行することでリマインダーの一覧を取得できます。
osascript -e 'tell application "Reminders" to get name of every reminder' | tr ',' '\n'
$ osascript -e 'tell application "Reminders" to get name of every reminder' | tr ',' '\n'
タスク1
タスク2
タスク3
タスク4
未完了のタスクのみ取得する場合には次のコマンドを実行します。
osascript -e 'tell application "Reminders" to get name of every reminder whose completed is false' | tr ',' '\n'
$ osascript -e 'tell application "Reminders" to get name of every reminder whose completed is false' | tr ',' '\n'
未完了タスク1
未完了タスク2
未完了タスク3
reminders-cliで取得する
reminders-cliをインストールします。
brew install keith/formulae/reminders-cli
次のコマンドを実行して特定のリストのリマインダー一覧を取得します。
$ reminders show リスト名
0 タスク1
1 タスク2
2 タスク3