Trên macOS, bạn có thể tùy chỉnh cách đặt tên file screenshot (Cmd + Shift + 4) thông qua lệnh defaults trong Terminal. Cơ chế này can thiệp trực tiếp vào com.apple.screencapture.
1. Đổi tên mặc định của file screenshot
Mặc định macOS lưu dạng:Screen Shot 2026-03-22 at 10.30.45.png
Bạn có thể đổi phần "Screen Shot" thành tên bạn muốn:
defaults write com.apple.screencapture name "TenBanMuon"
killall SystemUIServer
killall SystemUIServer
Ví dụ:
defaults write com.apple.screencapture name "KSNK"
killall SystemUIServer
killall SystemUIServer
→ Kết quả:KSNK 2026-03-22 at 10.30.45.png
2. Một số tùy chỉnh hữu ích khác (nên dùng chung)
a. Đổi format file (png → jpg)
defaults write com.apple.screencapture type jpg
killall SystemUIServer
killall SystemUIServer
b. Bỏ shadow (nếu chụp window)
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
killall SystemUIServer
3. Những gì KHÔNG làm được bằng cách này
macOS không cho phép tuỳ chỉnh sâu như:
- Format lại timestamp (YYYYMMDD…)
- Tự động thêm prefix/suffix động
- Tên theo rule phức tạp (ví dụ theo project, thư mục…)
Nếu bạn cần kiểu:
KSNK_20260322_103045.png
→ phải dùng:
- Script (bash / automator)
- Hoặc tool bên thứ 3 (Shottr, CleanShot…)
4. Gợi ý cách làm chuyên nghiệp (nên dùng trong workflow)
Với cách làm của mình (AI server, QMS, tài liệu nhiều):
Nên mình đặt naming chuẩn:
Module_Timestamp
VD: CLBV.VN_20260322_1030.png
VD: CLBV.VN_20260322_1030.png
→ Dễ:
- Search
- Sort
- Import vào hệ thống
5. Reset về mặc định
defaults delete com.apple.screencapture name
killall SystemUIServer
killall SystemUIServer
- Đăng nhập để gửi ý kiến