Re: Event to trigger writeSelectionToPasteboard
Re: Event to trigger writeSelectionToPasteboard
- Subject: Re: Event to trigger writeSelectionToPasteboard
- From: Peter Watkins <email@hidden>
- Date: Tue, 4 Jan 2011 08:46:39 -0800
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 or perform a service.
>
Being able to perform a service would be nice. I can see the reasoning
behind isolating apps. If my app can run in the background and collect text
from other apps, it stands to reason that I could send that text to some
remote server (unless the user has an outgoing-connection firewall). Now,
many apps, (Pages, etc.) allow access to their open documents through
AppleScript--so this wouldn't be an additional security risk for these apps.
The Accessibility way seems to be the best approach right now,
> although it's a much messier way to solve the problem as you are
> effectively mimicking mouse/keyboard selections.
>
As long as the user can't tell that the service is being run, I'm OK. The
reason is, I perform the service on every mouse drag and middle-click. If a
menu highlights each time, the user is going to get very annoyed.
You should also write up a bug/enhancement request for Apple. If
> enough folks keep requesting this type of functionality, perhaps
> they'll eventually add it.
>
Well, the proper fix is for Apple to support a separate selection buffer in
the OS itself. Then none of this would be necessary. They also wouldn't have
to compromise on security. However from a marketing perspective, I don't
really see this happening:
1) The majority of users switching to a Mac are switching from Windows (no
middle-click paste, there)
2) Two ways to copy-paste kinda goes against the Mac philosophy of one
simple way to do a task
Thanks,
Peter W
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden