If you want to display what you're playing in iTunes, why don't you simply use this script:
[release] Music now playing? That script gets the information
directly from iTunes, without the need of a plug-in who writes the information to a file first.
I mean: why would you want to re-invent the wheel?
Give it a try and see how it works out for you.