I want to be able to get all the pdf files currently opened by my Preview app into Terminal. The idea is, I want to be able to feed the output to a text file for future reference.
My use case may be satisfied without involving any direct confrontation with the Preview app itself. I might be able to get the data from console or doing a ps command from terminal.
As of now all such attempts of mine haven't gotten me anywhere. Please let me know how to achieve this task.