I apologise if this is covered elsewhere, but a search with the terms “Firefox”, “text” & “window” yielded nothing.
I have written a script to load a specific URL in Firefox, and then would like to extract the text from the window.
In Safari, this is easy (“text of document 1”), but Firefox does not recognise this instruction, and the Dictionary of Firefox is brief to say the least.
At present I am instructing System Events to press ‘command a’ then ‘command c’, then reading the clipboard.
Is there a better way?
Edit: P.S. Oops - sorry, just realised I put this in the XCode forum. How do I go about moving it? Thanks.