Finderで選択した複数ファイルやフォルダのパスを取得するクイックアクション

index.php
images
config.rb

Automatorでクイックアクションをつくる

  1. 新規作成クイックアクション
  2. Finderで選択したファイルやフォルダを取得
  3. 取得した内容をクリップボードにコピー
/Users/onopko/Dropbox/aguije/Documents/20220905/images
/Users/onopko/Dropbox/aguije/Documents/20220905/config.rb
/Users/onopko/Dropbox/aguije/Documents/20220905/index.php
pbpaste -Prefer txt | pbcopy
/Users/onopko/Dropbox/aguije/Documents/20220905/images 👇~/Dropbox/aguije/Documents/20220905/images
u="$USER"
sed "s/\/Users\/$u/~/g" | pbcopy
u="$USER"
pbpaste -Prefer txt | sed "s/\/Users\/$u/~/g" | pbcopy

Finderのクイックアクションとして登録する

~/Library/Services/パスを取得する.workflow
~/Dropbox/agujje/Documents/20220905/images
~/Dropbox/agujje/Documents/20220905/config.rb
~/Dropbox/agujje/Documents/20220905/index.php

--

--

💻 Web Design and Develop @ aguije inc. / 🏄‍♂️ Pro Web Surfer / ≡ adidas SAMBA / 🚲 VanMoofer / 🎮 Nintendo Addict / 🇯🇵 nipponcolors.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Takehiko Ono

Takehiko Ono

587 Followers

💻 Web Design and Develop @ aguije inc. / 🏄‍♂️ Pro Web Surfer / ≡ adidas SAMBA / 🚲 VanMoofer / 🎮 Nintendo Addict / 🇯🇵 nipponcolors.com