0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Macでフォルダを右クリックしてMarkdownファイルを新規作成する

Last updated at Posted at 2025-10-31

1. 右クリックメニューを作成する

  1. Automatorを起動 (⌘+Space > Automator > Enter)

  2. ファイルを開くダイアログが表示されたら閉じる

  3. ファイル > 新規作成 → クイックアクション
    image.png

  4. 入力

    1. ワークフローが受け取る現在の項目: フォルダ
    2. 検索対象: Finder
    3. 画像: +追加
    4. 左から、シェルスクリプトを実行 を右の灰色のゾーンにドラッグ&ドロップ
    5. シェルスクリプトを実行 セクション内に入力
      1. シェル: /bin/bash
      2. 入力の引き渡し方法: 引数として
      3. 内容
        touch "${1}/new.md"
        open "${1}/new.md"
        

    image.png

  5. Ctrl+Sで保存 > クイックアクションの名前: 新規 md ファイル
    image.png

2. 動作確認

  1. フォルダを右クリック
  2. クイックアクション > +新規 md ファイル
    image.png
  3. ファイルが作成されて、デフォルトのアプリが起動する
    image.png
0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?