title: Launchd script to auto-mount AFP share
body: <p>I've been getting more and more into using launchd to automate everything on my home server, and I'd like to harness some of it's power on my client machines. I basically want to figure out how to keep my server's AFP share mounted at all times. The only real issue I see myself running into is the script banging itself into a wall when I'm on a network that has AFP blocked. I'd think do something like try 3 times then give up, but then I'd have to restart the script when I left the network. I'm not quite sure how to write an if construct within the plist to make sure it can connect, or to check to see if the volume is already mounted. The only scripts I've written so far are to keep OS X applications alive.</p>