Update of Rick Altherr's pp that supports latest protocol, based on http://saphum.com/content/programming-pic-mac-os-x