1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Mac】リマインダーの一覧をターミナルから取得する方法

Posted at

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
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?