Library Persistent ID

Is there any built in call to get the local “Library Persistent ID” using applescript?

I can use different method to get that, but ideally I would prefer to get it via applescript directly.

Thanks,
Riz

I assume you mean in iTunes.

set songName to "Clocks"

tell application "iTunes"
	set theSong to first track of first playlist whose name is songName
	set pID to persistent ID of theSong
end tell