Re: sending Apple events between users (Pause iTunes of different user, redux)
Re: sending Apple events between users (Pause iTunes of different user, redux)
- Subject: Re: sending Apple events between users (Pause iTunes of different user, redux)
- From: has <email@hidden>
- Date: Sun, 30 Jan 2005 20:28:02 +0000
Matt Neuburg wrote:
* Does it work when sending raw Apple events, even if it does not work in
AppleScript?
Can't say myself as I'm still on 10.2.8, but here's a Python script
[1] to get a remote application's front window's name if you want to
try it yourself:
#!/usr/bin/pythonw
from aem.types import *
from aem.send import *
u = 'eppc://zellers:email@hidden/Finder?uid=501&pid=315' # YOUR URL
print Application(url=u).event('core', 'getd',
{'----': app.elements('cwin').first.property('pnam')}).send()
HTH
has
[1] Requires aem package:
<http://freespace.virgin.net/hamish.sanderson/aem-0.5.0.tar.gz>
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden