Howdy folks, I am trying to build a macro similar to my Use Dict (Homebrew Package) to Get a Word’s Definition macro, but to look up the word's synonyms using
But for many words that have multiple meanings, the first result of the shell script is verification of which meaning you would like to use to look for synonyms. For instance, the word "well" can be an adjetive meaning "good", or a noun meaning "a source of water"... and you have to select the appropriate word to lookup. Running this in Terminal therefore produces this result:
Once you select an option, it will produce this, which is the desired end result:
But when running this from Keyboard Maestro, it returns the following error:
Obviously, the shell script needs further user input before it can supply a list of synonyms, but I'm not sure how to accomplish that via a KM run shell script. So is there anyway to have the shell script output the list of words (screenshot 1) to a variable or clipboard so I can populate a prompt user from list, and then use the selection to finish executing the shell script?
The macro I am working on is below if anybody needs/wants to take a look at it.
01)Scratchpad.kmmacros (8.8 KB)