LoginSignup
0
0

【Mac】ターミナルからリマインダーを操作する方法

Posted at

reminders-cliを使用する

reminders-cliを使用することでコマンドでリマインダーを追加できます。

Homebrewでインストールするには以下のコマンドを実行します。

brew install keith/formulae/reminders-cli

リマインダーを追加するには次のように実行します。

$ reminders add リマインダー reminders-cliで追加 --due-date "today 3pm"
Added 'reminders-cliで追加' to 'リマインダー'

上記の場合には「リマインダー」というリストに「reminders-cliで追加」というタイトルの当日の午後3時が期限のリマインダーが作成されます。

リマインダーの追加以外にも編集や削除などもできます。
詳細は以下をご参照ください。

AppleScriptを使用する

以下のコマンドを実行することでリマインダーを追加できます。

osascript -e 'tell application "Reminders" to make new reminder with properties {name:"AppleScriptで追加", allday due date:current date} at list "リマインダー"'

上記を実行すると「リマインダー」というリストに「AppleScriptで追加」という名前の当日終日が期限のリマインダーが追加されます。

リマインダーのプロパティ一覧は以下のとおりです。

プロパティ 説明
name (text) リマインダーの名前
id (text, r/o) リマインダーの一意な識別子
container (list or reminder, r/o) リマインダーのコンテナ
creation date (date, r/o) リマインダーの作成日
modification date (date, r/o) リマインダーの変更日
body (text) リマインダーのメモ
completed (boolean) リマインダーが完了したかどうか
completion date (date) リマインダーの完了日
due date (date) リマインダーの期限。日付と時間の両方を設定する
allday due date (date) リマインダーの期限。日付のみ設定する
remind me date (date) リマインダーの期日を指定する
priority (integer) リマインダーの優先順位。
0:優先順位なし、1〜4:高、5:中、6〜9:低
flagged (boolean) リマインダーにフラグを立てるかどうか
0
0
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
0
0