• 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: sending keypresses to another app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: sending keypresses to another app


  • Subject: RE: sending keypresses to another app
  • From: Jerry LeVan <email@hidden>
  • Date: Mon, 3 May 2004 08:08:33 -0400

>I have an AppleScript which uses System Events to bring a particular
>app to the front, then execute a series of key presses.
>It works fine but is slow and difficult to implement elegantly from my
>Obj-C cocoa app.

Hi, I use a simple Applescript in Aqua Tcl/Tk to bring Wish to the front:

tell app "Finder" to set frontmost of process "Wish Shell" to true

Something like this only takes a couple of lines in Cocoa as I recall


--Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Msg reply
  • Next by Date: Where is the problem?
  • Previous by thread: Re: Msg reply
  • Next by thread: Where is the problem?
  • Index(es):
    • Date
    • Thread