A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
I'm trying to understand why the following happens (Mac), if anyone can help me.
I wrote this command so what new files uploaded to the current folder were automatically added to yoink (a clipboard manager):
fswatch -0 . | xargs -0 -n 1 -I {} open -a Yoink {}
But, only with this specific command, this command will actually run every second once fswatch is triggered with a new file?
Hello,
I'm trying to understand why the following happens (Mac), if anyone can help me. I wrote this command so what new files uploaded to the current folder were automatically added to yoink (a clipboard manager):
fswatch -0 . | xargs -0 -n 1 -I {} open -a Yoink {}
But, only with this specific command, this command will actually run every second once fswatch is triggered with a new file?
If I use:
fswatch -0 . | xargs -0 -n 1 -I {} say "new file"
it works (runs once). If I run:
fswatch -0 . | xargs -0 -n 1 -I {} code {}
it works, launching VsCode once with that file.
Any idea what could be going on?