osx - The Focus of the Default Sharing Window -


i'm using command line tool called terminal-share use macos's system sharing service.

the tool's code can found here: https://github.com/mattt/terminal-share/

but, there 1 little problem tool. since headless command line application. application don't have window of own.

and when invoking (using nssharingservice), start sharing window(the default sharing window), sharing window won't have focus.

so, must click post button using mouse, not using cmd + shift + d (or cmd + enter) send share. since there no focus(the window accept key event still terminal emulator start application.

this qutie annoying. there better way fix this?

i've invesigate nssharingservice api, didn't have code default sharing window. there anyway keep tool headless, , let default sharing window being focused when come out?

thanks.


Comments