Can you use NSPasteBoard to insert into another application?
I found out how to get the content of NSPasteboard and copy it to my active application. I have not found a way to insert it into another application, just how to insert it into my current application.
If you are wondering why I would like to do this, I am investigating if there is a way to improve the open source Jumpcut application (jumpcut.sf.net). It currently spoofs Cmd + v to paste content into another application, but that doesn't work on X11 (which expects Ctrl + v).
thank
source to share
The problem is that X11 doesn't really understand OS X mapping at all, so there is some special magic going on to map everything on the OS X framework into a form that can be used like X-cardboard. Depending on what you are willing to "know" about the target application, you can do something in between by sending a simulated Ctrl-V event and forcing the application to request the contents of the clipboard (rather than the main clipboard, which is the middle one - select one in X)