Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Launch agent to repair webloc files with missing icon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.foobar.webloc</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>/usr/bin/find /Users/foobar/Desktop -name \*webloc -type f | /usr/local/bin/parallel /usr/bin/SetFile -t ilht -c MACS {}</string>
</array>
<key>WatchPaths</key>
<array>
<string>/Users/foobar/Desktop</string>
</array>
<key>ThrottleInterval</key>
<integer>1</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment