Have you thought of changing your mouse's System Preferences settings to
execute a script that does what you want? It appears you should be able
to use the side-buttons on a Mighty Mouse to do what you want. Otherwise,
I'd contact the manufacturer of your three-button mouse and let them know
of y
Hi Graham,
On Tue, Jan 4, 2011 at 2:43 PM, Graham Cox wrote:
>
> On 05/01/2011, at 3:04 AM, Peter Watkins wrote:
>
> This is what I'm really trying to achieve, "I'm writing an app that lets
> the user select text in one program and paste it into another by
> middle-clicking the mouse button."
>
On 05/01/2011, at 3:04 AM, Peter Watkins wrote:
> This is what I'm really trying to achieve, "I'm writing an app that lets the
> user select text in one program and paste it into another by middle-clicking
> the mouse button."
But why? There is a perfectly reasonable standard way to cut and p
Hi Mark,
You used to be able to get around this stuff by using one of the
> plugins available (AppleScript Addition or Contextual Menu). But it
> seems with each new OS release, Apple has been isolating apps more and
> more. No plugins, no way to directly perform common actions like
> copy/paste o
Hi Peter,
You can copy a selection using the Accessibility API:
> First get the UIElement for the application's "Copy" menu item.
> Then invoke "AXPress" on it.
> Drawback is that you will have to ask the user to enable Accessibility if
> it is not enabled.
>
> To get an idea about Accessibility,
Hi Graham,
Read the Services Implementation Guide:
>
>
> http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/SysServices/introduction.html
>
> The app needs to be written to be services aware, and implement the
> protocols specified in the guide. If not, you can't do what you'r
You can copy a selection using the Accessibility API:
First get the UIElement for the application's "Copy" menu item.
Then invoke "AXPress" on it.
Drawback is that you will have to ask the user to enable
Accessibility if it is not enabled.
To get an idea about Accessibility, look at Apple's "A
On 01/01/2011, at 6:43 AM, Peter Watkins wrote:
> I know that each Cocoa app implements writeSelectionToPasteboard(), and I'm
> guessing this is how services interact with running apps. Each service is a
> separate short-running process. Sothere must be some sort of IPC to get the
> selection fro
I'm writing an app that lets the user select text in one program and paste
it into another by middle-clicking the mouse button. This roughly emulates
the X11 selection buffer.
The first version I wrote used event taps to detect when the user dragged a
selection (doesn't work for a double-click sel