• 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 Apple events between users (Pause iTunes of different user, redux)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: New window in Terminal.app
  • Next by Date: Re: New window in Terminal.app
  • Previous by thread: Re: sending Apple events between users (Pause iTunes of different user, redux)
  • Next by thread: Re: New window in Terminal.app(Applescript-users Digest, Vol 2, Issue 67)
  • Index(es):
    • Date
    • Thread