• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AppleEvents to copy and past text from any application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AppleEvents to copy and past text from any application


  • Subject: Re: Using AppleEvents to copy and past text from any application
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 5 Jan 2010 17:02:53 +0100

Le 5 janv. 2010 à 16:46, Jesse Grosjean a écrit :

> I'm developing a small open source app called QuickCursor.
>
> - http://www.hogbaysoftware.com/products/quickcursor/
> - http://github.com/jessegrosjean/quickcursor
>
> The idea is to replace the input manage based "edit in" features with
> a generic program that provides the same feature, but using public
> API's instead of input manage hacks.
>
> Right now QuickCursor works through the accessibility api to
> read/write text from the target app. This works well for many apps
> (ones that expose their text as a single writable string attribute to
> the accessibility api), but not all apps do that. And as a result
> QuickCursor doesn't work everywhere. And so I'm looking for an
> alternative idea. The accessibility api also has a problem that it
> seems to mess up the undo stack in some programs.
>
> Someone suggested that I use AppleEvents to automate select
> all/copy/paste out of and then back into the target app. That would
> seem to be a greate approach, but I'm not sure how to do it. Is there
> anyone on this list who would be willing to help?

I'm not sure this is the way to go.
You will encounter the same issue than with Accessibility API. The target application has to support it.
In fact, I'm pretty sure there is far less app with scriptability enabled than app with accessibility available.

-- Jean-Daniel




_______________________________________________

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

  • Follow-Ups:
    • Re: Using AppleEvents to copy and past text from any application
      • From: Jesse Grosjean <email@hidden>
References: 
 >Using AppleEvents to copy and past text from any application (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Turn off font hinting?
  • Next by Date: Re: Using AppleEvents to copy and past text from any application
  • Previous by thread: Using AppleEvents to copy and past text from any application
  • Next by thread: Re: Using AppleEvents to copy and past text from any application
  • Index(es):
    • Date
    • Thread