Created
June 15, 2018 03:37
-
-
Save cdpath/30edada252889491d74cf338dd21366c to your computer and use it in GitHub Desktop.
hammerspoon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- open -g hammerspoon://eudic?query=hammer | |
hs.urlevent.bind("eudic", function(eventName, params) | |
cmd = string.format('tell application id "com.eusoft.eudic" to activate & show dic with word "%s"', params['query']) | |
hs.applescript(cmd) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment