Created
June 3, 2016 03:18
-
-
Save uchcode/c9b6e35cc5ab6167b9a3992648b37f98 to your computer and use it in GitHub Desktop.
NSApp.servicesMenu in JXA
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hei, it was super useful to find this!
There is one line though that potentially makes the code work a lot better, at least it now in 2018 on High Sierra.
The code seems to work with a much reduced risk of errors adding after line 63:
App.activate()
Hope it can help if anybody else finds this old gist while snooping around for the sparse JXA examples out there. :-) <3