I'm challenged I can not read the menu items used in you animated Gif. However you did post in the scripting forum. So I imagine you used a Script. If the script is saved into a JSXBIN you can not read what it is doing. It may be doing something like I did in my potrace script. Where I executed a windows application to trace a grayscale image. Where the Script pooled to see if the application output was created, once it was the script use it to define a custom shape and add that shape on top of the document being processed.
In this case the script may have executed some OCR application then uset its output to create text layers.