Using a script to search and find the text in a photoshop file

Hello,
I am trying to search the live text on layers inside photoshop (.psd) files. On a local machine (apple) I can use spotlight and it will find the type on the layers. But using any other database like cumulus or filemaker will not when the image is stored or referenced, nor will spotlight work on our servers.

Is there any way for an applescript to collect (maybe extract the text on the photoshop layers) and use them in a search. Maybe have the text extract from the layers and then create a new record in a program like filemaker or excel, and then that could be used as our search option.

I’m just trying to find some way to search inside of a .psd file the type on the layers. So, maybe a script might do it???
Any thoughts would be greatly appreciated.

thanks!
barbara