LoginSignup
0
3

コマンドを mac のアプリにする

Posted at

よく忘れるのでメモ

以下のようなコマンドを自作している。

mac の App バンドル用は .app ファイルにしてくれる make_app というコマンド。

て便利だけど、たまにしか使わないのでググったり gpt ったら出てくるようになったらいいので、ここに書いておく。

コードは以下

使い方

make_app -c 'mdimport -i /Volumes/HDD-* ~/Downloads' -a /Applications/Reindex.app

上の例だと Reindex.app が生成され、その app を実行すると mdimport コマンドを実行して Spotlight の index を更新してくれる。

作ったアプリは

Finder のカスタムバーに入れておくと便利

スクリーンショット 2023-11-20 2.06.30.png

0
3
1

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
3