I have a menubar application without a dock icon or global menu, it's just a StatusItem and a Window.
I've got it wired up to a hotkey which activates the window and upon deactivating the window I am able to send focus back to the previously active application.
How can I send an NSString to the active textarea in the other application, as if the user had typed it directly?
I think it might be possible using accessibility features. I'd like to avoid using AppleScript if at all possible.