Uma alternativa às ações de pasta pode ser salvar um plist como este, por exemplo, ~/Library/LaunchAgents/test.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
<key>Label</key>
<string>test</string>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>-c</string>
<string>rm -rf ~/Documents/Black\ Hole/*</string>
</array>
<key>WatchPaths</key>
<array>
<string>~/Documents/Black Hole/</string>
</array>
</dict>
</plist>
Pode ser carregado com launchctl load ~/Library/LaunchAgents/test.plist
ou efetuando logout e back in.