Looks like this is another feature that it has not been deemed worthwhile to provide (reasonably convenient) Scripting support for. (edited)
And quite frankly apart from the likely performance issues I wouldn’t even know how to go about "parsing .psd" …
Maybe you should post a Feature Request for improved Scripting access to the feature over at