Get the Browser Page Title & URL for Safari, Chrome, or FireFox

Lots of good stuff here, but just as a quibble, wouldn’t the keystroke sequence you used for Firefox also work (less elegantly) for Safari and Chrome?

It might, but as a general rule it is best to avoid using UI scripting unless there is no other alternative. UI changes often happen, which can break macros and scripts that depend on the UI.

FireFox has no scripting support, so we are forced to use UI scripting for it.

It also occurred to me as I was reading your response that keystrokes can’t be relied on because the user may have rebound them, either through the the App Shortcuts section of the Shortcuts Tab of the Keyboard System Preference Pane or through KM macros.

I am a long time user of KBD maestro, but had never registered on the forum, I did today just to offer thanks. you came back to your own link many years later in order to tell us in Version 8, there is a direct way to get the browser URL.

I never would have known to look, so I likely would have generated some terrible work around... thanks for that extra effort and thoughtfulness!

1 Like

Hey Dan,

Welcome to the forum!  :sunglasses:


I'm sad to say that @JMichaelTX will not see your thank you note...

The Passing of JMichaelTX

JMichaelTX – Unforgettable Generosity With His Time and Knowledge

-Chris

1 Like

Oh wow! Well his tribute on this forum is certainly appropriate.
Thanks for the link.
--dan

1 Like