Apple links usually open up in a webpage, and then open iTunes, which can be annoying if it takes a while to load.On the other hand, once you do it iCloud syncs it to your phone/iPad, so there is no problem there.
... I thought that was what your script solved. If not, then you have some serious copy issues.
Oh, I'm not the OP. Just commenting that Apple already puts it on your device through iCloud, so half the problem has been solved.