본문으로 바로가기

Final Result

  1. Right Click to open folder with certain programs: Iterm2, Typora, VSC etc...

 

  1. For Macbook Pros with touch bars, you can open folder with programs with one click.

 

How

  1. Spotlight(CMD + Space) to find Automator.

  1. Choose Quick Action

 

 

  1. You'll get this screen after selecting quick action

 

  1. On the left side of panel, search for "Run Shell Script"

 

 

  1. Then, on the right side of panel will look like this. Now We are ready to customize this quickaction one-by-one.

 

  1. Workflow receives current "files or folders"

 

 

  1. Workflow receives current "files or folders" in "Finder"

 

 

  1. (optional) Choose Icon which intuitively displays the action for you.

 

  1. Select shell as "/bin/bash" and write the script(AppleScript) as following:

 

To Open VSCode with quickaction:

for f in "$@"; do
    open -a 'Visual Studio Code' "$f"
done

To Open iTerm with quickaction:

for f in "$@"; do
    open -a iTerm "$f"
done

To Open Typora with quickaction:

for f in "$@"; do
    open -a typora "$f"
done

 

  1. Pass input "as arguments"

 

  1. After the process 1 ~ 10, it should look like the following:

 

  1. CMD+S to save the quickaction and name the quick action.

  2. Quickactions can be archived on Services folders. You can rename/delete/edit your quickactions here.

 

Version

  • Mac OS Cattalina ver. 10.15.3
  • Macbook Pro 16 inch model

Reference