Application icon

Save iTunes PIDs

This is a convenience function which will extract the iTunes PID property from files linked to iTunes. The property value is then saved to the iTunes PID UDTI.

The function is only applied to tracks currently linked to iTunes and is equivalent to:

Get Property iTunes PID -> Variable 1
Import value of User Defined Text Item with name 'iTunes PID' from Variable 1 (create)

The function immediately unlinks the tracks. This is to prevent the inadvertent overwriting of iTunes metadata when saving the tracks. If that was your intent you can relink the tracks before doing a Save. The unlinking protects the scenario where you have metadata in the iTunes library but little or none in the tracks.