• 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 events to another user space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending events to another user space


  • Subject: Re: Sending events to another user space
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 1 Mar 2004 12:10:33 -0800

On Mar 1, 2004, at 6:16 AM, Rob Lewis wrote:

In Panther, can a script running in one user space sent events to a program running in a different (logged-in) user's space? How is it done?

That question brings up a bunch of other questions...

Is the other user's space actually running, or is it paused/suspended? (If it's suspended, it cannot react to anything anyway.)

Assuming the other space is suspended, then what is the point of sending an event to it?

Heck, I don't even know how to "pause/suspend" another user space. My home automation software keeps running and responding to external events just fine when its user space is switched into the background (and that rotating cube effect is so cool!)

He wasn't saying that it *was* possible, he was asking *if* it was possible.

Applications running in another user space are merely bored, not actually asleep/paused/suspended. They think the monitor is asleep, but are free to do whatever they like, and can respond to incoming events.

As for sending events, see the 10.3 release notes at <http://developer.apple.com/documentation/ReleaseNotes/Carbon/ AppleEvents.html>. You can send an event to an arbitrary application using the new uid= and pid= parameters, though of course this requires you to find out what the uid or pid is. :-)


--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Sending events to another user space
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Sending events to another user space (From: Rob Lewis <email@hidden>)

  • Prev by Date: How to intergrate Applescript in HTML ???
  • Next by Date: Re: Sending events to another user space
  • Previous by thread: Re: Sending events to another user space
  • Next by thread: Re: Sending events to another user space
  • Index(es):
    • Date
    • Thread