create custom links in OSX dock
I use the platypus tool/framework to roll scripts into apps all the time:


http://sveinbjorn.org/platypus/


The code for it is available and it's a free download with a request to donate financial support if you can/care.