Does this example script for determining whether a media path is relative or absolute help?
The script does not display the path… but that’s easy to change.