One of the oldest tut there's still available on web:
https://www.kirupa.com/motiongraphics/ps_scripting.htm
I haven't tried it, but fortunatelly scripts are still downloadable.
That should be stored in some safe place just in case this one stop working like many other services...
I found that author posted it at beggining of this site existment in this topic:
viewtopic.php?f=77&t=21846
but it's worth to recall putting it in Tutorials area.
Ps. one missing file I noticed is that you see in "IV. Using a Text File as a Database" i.e. db.txt
Without it a script can't read persons data, but I guess it's lost for keeps...