Using applescript to get file badgeId

Is there any way to ask the finder to return the badgeId of a file?

The badgeid is the icon set using FIFinderSyncController:setBadgeIdentifier.


Such information would be useful for automated testing.