How to Open Current Webpage in Safari From MS Edge and Vice Verse?

Method 1

This will make Microsoft Edge work with the JavaScript action in KM:

JavaScript works after running these commands in the Terminal:

defaults write com.stairways.keyboardmaestro.engine AppleScriptGoogleChromeBundleID -string >"com.microsoft.edgemac"
defaults write com.stairways.keyboardmaestro.engine BrowserGoogleChromeName -string "Microsoft >Edge"

See this post:

Then you'll be able to use the %FrontBrowserURL% token, like this:


The customization above will allow the %FrontBrowserURL% token to work with Microsoft Edge.

Method 2

If you are not comfortable with the customization given above, you may use these actions:


This will also work with Firefox which does not have JavaScript via AppleScript Event support.