Automate purchase through iTunes

Hello everyone!

I’m new in applescript and automation processes in Mac OSX.
There is my situation- i have an iTunes account. I have some friends who use my account too :slight_smile: I don’t want to allow them to spend all my money, so i removed my credit card from account and ask them to fill shopping cart at first, and after my review i press Buy button and give iTunes my credit card info for purchasing music.
After purchase i remove my cart from account again.
So, is there any way to automate this process? I want just press one button and after this script should open account preference, go to credit card section, put my info inside, then switch to shopping cart and press buy button, and when downloads start (or after 1 minutes) switch account back. Is that possible?

Thank you!

Model: ibook g4
AppleScript: 1.10.6
Browser: Safari 417.9.3
Operating System: Mac OS X (10.4)

iTunes Music Store Allowance
http://docs.info.apple.com/article.html?artnum=302058

may or may not be a better solution.