When you need a linked reference to a KM Wiki article, like responding to questions in this KM Forum, you can use this macro which makes it very easy to search and find the correct article, create a markdown link, and then paste into your reply to the question.
Cool. It fails for me when it tries the close the tab though. What happens is:
It opens the google search in a new window
Then it opens the wiki page in the same tab, replacing the google search.
Then it tries to Close Tab twice, and that fails, since there is no tabs open, and only Close Window is available.
So my guess is you are intending the google search to happen in the same window, but in a new Tab, and then the wiki page to open in another tab, and then to close them both.
I solved it for me by replacing the two Close Tab’s with a single Close Window, but there is probably a more elegant solution somewhere, and clearly that would be bad for you and perhaps others, so a solution that copes with the different behaviours would be better.
Just chiming in to say that I ran into the same problem as Peter, even with different Safari tab settings:
and similarly solved the problem by changing the two "Close Tab" actions to just one. Once I figured that out though, the macro's been working great. Thanks for sharing this!
Yep, you nailed it. Evidently I had Safari configured differently from both you and Gabe. I ran fine for me in Safari. I'll have to look at changing it so that it always opens the links in new tab in the same window.
As you guys know I rarely use Safari -- Chrome is my preferred browser.
Sorry for the trouble. I made a bad assumption (actually didn't even think about it) that everyone would have Safari configured like I did for my few tests.
Fixed the issue with Safari Tabs by changing to New Tab in Front Browser Action, which will work for both Safari and Chrome, and independently of the user's browser settings.
This macro opens two new tabs in the existing window, and then closes them when finished.
Apologies for resurrecting this old discussion but...
I've just installed this macro and it seems to be broken. What I get in Step 3 differs insofar as the list of search results is not numbered, so choosing one is not straightforward. See here:
That solves the missing numbering of the search results but there is now another problem: the script to populate the variable Local__WikiURL returns nothing and leaves the variable empty and the new browser tab is an empty page.
This is the sequence:
(Ignore the Testing Only action group - I put that in to find the problem.)
I'm not clever enough to figure out a fix for that myself.