t-log

Claspを導入

ローカルでGASの編集をするためにClaspを導入した。

Claude CodeやGitHubと連携しやすくなるため便利。

新しくプロジェクトを作る場合はclasp create --title "title"、オンラインで作成したスクリプトを編集したい場合はclasp clone [scriptID]を使う。

初回実行時に

User has not enabled the Apps Script API. Enable it by visiting https://script.google.com/home/usersettings then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

というエラーが出たが、指示に従い https://script.google.com/home/usersettings からGoogle Apps Script APIの設定をオンにすることで接続できるようになった。