• 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: Problem with NSAppleScript execution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSAppleScript execution


  • Subject: Re: Problem with NSAppleScript execution
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 13 Sep 2011 06:48:30 -0700

On 2011 Sep 12, at 22:01, Nava Carmon wrote:

> My application intercepts clicks/key down events and brings the text from the frontmost application to my application on catching a certain key sequence. Then it evaluates it and pastes fixed text back to the application, that was frontmost.
>
> I tried using accessibility APIs, but not all applications support it. AppleScript seems to be the universal solution in this case, since it's mostly simulates copy & paste key sequences, but may be there are another technologies, that can be used for this purpose. Are you aware of something more robust?

Mac OS X "Services" (a terribly ambiguous name) are more robust, but require the user to click your menu item.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/SysServices/introduction.html

Beyond that, I think you need to go into system hacksterism, which I don't know how to do.  There are apps that do text expansion, which seems to be what you'r describing, but I've never even used them and have no idea how they work.

Anyone else out there have any idea?

_______________________________________________

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: Problem with NSAppleScript execution
      • From: Nava Carmon <email@hidden>
References: 
 >Problem with NSAppleScript execution (From: Nava Carmon <email@hidden>)
 >Re: Problem with NSAppleScript execution (From: Jerry Krinock <email@hidden>)
 >Re: Problem with NSAppleScript execution (From: Nava Carmon <email@hidden>)

  • Prev by Date: Responder-Chain question.
  • Next by Date: Re: Problem with NSAppleScript execution
  • Previous by thread: Re: Problem with NSAppleScript execution
  • Next by thread: Re: Problem with NSAppleScript execution
  • Index(es):
    • Date
    • Thread