告诉HN:macOS上的截图不一定要命名为带空格的日期文件。

4作者: cs19967 天前原帖
你不喜欢桌面上有很多文件,比如 Screenshot 2026-09-14 at 6.42.17 AM.png 吗?<p>mkdir ~/Screenshots<p>defaults write com.apple.screencapture location "$HOME/Screenshots"<p>killall SystemUIServer<p>https://gist.github.com/andrewarrow/1584ca32badeb19868dcc3bec657eaa9<p>https://gist.github.com/andrewarrow/3d61d1c8ecdd3a7e7401bbec481718ca<p>launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.aa.rename-screenshot.plist<p>现在我得到了:<p>~/Screenshots $ ls<p>basifacial_decidua.png<p>dehull_knopweed.png<p>erlking_walloping.png
查看原文
Do you not like lots of files on your Desktop like Screenshot 2026-09-14 at 6.42.17 AM.png ?<p>mkdir ~&#x2F;Screenshots<p>defaults write com.apple.screencapture location &quot;$HOME&#x2F;Screenshots&quot;<p>killall SystemUIServer<p>https:&#x2F;&#x2F;gist.github.com&#x2F;andrewarrow&#x2F;1584ca32badeb19868dcc3bec657eaa9<p>https:&#x2F;&#x2F;gist.github.com&#x2F;andrewarrow&#x2F;3d61d1c8ecdd3a7e7401bbec481718ca<p>launchctl bootstrap gui&#x2F;$(id -u) ~&#x2F;Library&#x2F;LaunchAgents&#x2F;com.aa.rename-screenshot.plist<p>And now I get:<p>~&#x2F;Screenshots $ ls<p>basifacial_decidua.png<p>dehull_knopweed.png<p>erlking_walloping.png