I'd like to write a small script that implements RFC4709 for OS/X.
I started off by creating an application bundle that registers the application/xml+davmount mimetype and launches a simple python script.
It doesn't make a lot of sense to me to make this a .app bundle, because the application is very short-lived, and it also doesn't seem like the best idea to get people to install it into /Applications
As a complete newbie in anything related to programming OS/X, what would be the best way to implement this RFC effectively, with the ultimate endgoals allowing users to click a link with the application/xml+davmount mimetype, which then automatically mounts the share (after asking for username and password).