• 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: "hooking" into another app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "hooking" into another app


  • Subject: Re: "hooking" into another app
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 14 Apr 2008 10:03:23 -0700

On Apr 14, 2008, at 8:24 AM, Oliver Quas wrote:

Am 14.04.2008 um 16:58 schrieb Florian Soenens:



on 4/14/08 8:26 AM, email@hidden purportedly said:

Re-read my message. If it was unclear, what I want to do is be able to
log (record) text being written to a chat window from another app. NOT
log key strokes. For example, how could I progmatically record an AIM
chat conversation from my app?

You can't, at least not without the application's cooperation, such as being a plugin, using OSA, etc. With a *user's* (or administrator's) cooperation, you could have an app that acts as a proxy. Another option would involve a kernel extension, and that may be more work than it is worth.


Under the premise that your Chat-Client supports AppleScript, why not use the ScriptingBridge?

Because Scripting Bridge is for controlling other applications, not for writing handlers that an application will call.


Mr. Arnel's answer is basically correct -- you're going to need the target application to give you some hooks to hang your recorder on. (Unless you want to do something grungy like a kernel extension, that is.) Some chat clients provide such hooks as part of their scriptability. For example, iChat in Leopard has a rather extensive set of handlers that you can attach AppleScript scripts to, and from there you can do what you like -- in your case, you'd want the "message received" handler. You never specified the application you were interested in, but take a look at its scripting interface (drop it on Script Editor) and see if something looks promising.


--Chris Nebel AppleScript Engineering

_______________________________________________

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: "hooking" into another app
      • From: Don Arnel <email@hidden>
References: 
 >Re: "hooking" into another app (From: Keary Suska <email@hidden>)
 >Re: "hooking" into another app (From: Florian Soenens <email@hidden>)
 >Re: "hooking" into another app (From: Oliver Quas <email@hidden>)

  • Prev by Date: Re: "hooking" into another app
  • Next by Date: Re: "hooking" into another app
  • Previous by thread: Re: "hooking" into another app
  • Next by thread: Re: "hooking" into another app
  • Index(es):
    • Date
    • Thread