-
Mở Automator
-
Quick Action
-
Tạo mới "Service"
-
Thêm một action "Run Shell Script"
-
Mục Workflow receives current bạn chọn: "files or folders" in "Finder"
-
Mục Run Shell Script:
- Shell chọn: /bin/bash
- Pass input chọn: as arguments
- nội dung nhập:
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -a "$@" -
Trong đó:
-a: thêm vào với cửa sổ hiện tại-n: Mở với cửa sổ mới
-
Lưu với tên: Open in Sublime
--- DONE