URL (and Title) from Firefox (subroutine)

That script just gets the window title, and that works without having to jump through hoops.

On the other hand – if you want to gain access to objects inside the window you have to turn on Voice Over.

See this script:

How to Get URL of FireFox Current Document? - #7 by ccstone

They had a working sdef (AppleScript Dictionary) for Firefox, and it would have taken minimal effort to maintain it.

1 Like