Was that a statement or a question? You said you "can pull the URL out of there." Or are you asking if that is possible?
Which "get URL" action are you using? This one? This action doesn't get the URL from the current browser. It gets the web page at the specified address, which is different from what I think you are trying to do.
Isn't Edge brand new for MacOS, like a month ago? So I don't know much about it. Does it have AppleScript support?
PWA is considered a standalone application. URL action only can be used for the browser not PWA. To my knowledge there is no simple way to that in PWA, unless one want to deal with such complexity using additional tool (eg tampermonkey) and programming.
The following is one way.
The following are the steps:
- Use Microsoft Edge “Install As App” to create PWA.
- Tampermonkey can inject javascript, so whenever PWA is activated, it can trigger KM macro (eg window.focus event) and pass the current URL to it. Inside the KM macro, it will update the KM global variable, which one can then easily retrieve using Applescript and JXA.
If you are interested in this approach, i can show the code and tampermonkey script setup.