You can use Mac::iTunes under the same terms as Perl itself.