Re: Tell active app to paste
Re: Tell active app to paste
- Subject: Re: Tell active app to paste
- From: Ondra Cada <email@hidden>
- Date: Mon, 3 Apr 2006 09:14:43 +0200
David,
On 3.4.2006, at 9:09, David Rogers wrote:
I'd like to tell another application to Paste. The only way I've
found to do it is by using CGPostKeyboardEvent. The problem with
that is that users of alternate keyboard layouts(dvorak, etc) will
not get the desired result. Is there a way to post a notification
or apple event to an app? Or is there another, preferred way to do
this?
Never tried myself, so there may be different gotchas, but what about
AppleScript or accessibility API?
BTW, of course I don't have an idea what actually are you trying to
achieve, but I got a strong hunch you are working against the API: in
a very vast majority of cases (nearly 100 %, I'd say :)) you do *not*
want to send a paste -- instead, you want to provide a service, and
let the application code to get the data from the service pasteboard
any way *it* (or, rather, its developer :)) considers proper.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden