How to run OxiPNG with launchd and WatchPaths?
1
vote
1
answer
103
views
I want to run
oxipng *.png
in /Users/user/Desktop/
immediately after a PNG screenshot (Cmd-Shift-3) is created in my Desktop folder.
I have the following plist
file in ~/Library/LaunchAgents/
:
Label
oxipng
ProgramArguments
oxipng
*.png
WatchPaths
/Users/user/Desktop/
Then, I run launchctl load ~/Library/LaunchAgents/oxipng.plist
. However, the PNG are never modified after creation.
-----
How do I make oxipng run after a screenshot is saved to the Desktop folder?
Asked by homocomputeris
(225 rep)
Aug 17, 2022, 03:30 PM
Last activity: May 4, 2025, 06:03 AM
Last activity: May 4, 2025, 06:03 AM