- For Macbook Pros with touch bars, you can open folder with programs with one click.
- On touchbar, shortcut Buttons will look like following
- Runthrough Example: Open folder with VSCode
- Right Click to open folder with certain programs: Iterm2, Typora, VSC etc...
- Spotlight(CMD + Space) to find Automator.
- Choose Quick Action
- You'll get this screen after selecting quick action
- On the left side of panel, search for "Run Shell Script"
- Then, on the right side of panel will look like this. Now We are ready to customize this quickaction one-by-one.
- Workflow receives current "files or folders"
- Workflow receives current "files or folders" in "Finder"
(optional) Choose Icon which intuitively displays the action for you.
- 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
- Pass input "as arguments"
- After the process 1 ~ 9, it should look like the following:
-
CMD+S to save the quickaction and name the quick action.
-
Quickactions can be archived on Services folders. You can rename/delete/edit your quickactions here.
- Mac OS Cattalina ver. 10.15.3
- Macbook Pro 16 inch model