[Pythonmac-SIG] More appleevents
Bill Bedford
billb@mousa.demon.co.uk
Sat, 15 Apr 2000 22:46:52 +0100
At 12:32 pm +0100 15/04/00, Erik van Blokland wrote:
>Hi
>
>I'm trying to create the python equivalent of the following applescript
>(eeeek!)
>
>tell application "Finder" of machine "Monster"
> beep
> -- or anything else
>end tell
>
>This creates an AE object that claims to be application 'Finder' of
>machines 'Monsta':
>remoteapp = AppleScript_Suite.application("Finder",
>fr=AppleScript_Suite.machine("Monster"))
>
>But how do I get to 'tell' anything? Any object that's related to
>aetools.TalkTo needs a 4 character signature i.e. "MACS" for the Finder.
>But there's no no signature for a remote application? TalkTo won't accept
>the remoteapp object.
I've not tested this because I haven't got a network set up, but.............
TalkTo will also take a AEDesc, so that it's possible to use
TalkTo.newevent() to build a signature of the remote finder. The
parameters are all in the AppleScript.suite and should be code='ascr'
subcode='tell' machine='MyOtherMac' and zone='' (unless you have
appletalk zones.)
>
>Aside: my AECapture script doesn't work for this: the AECapture control
>panel says the target of the above applescript is "". I'm guessing the
>events too new and it can't parse them or something.
No, this has been there since the beginning, its probably AECapture
not being able to decode a AEDesc.
--
Bill Bedford
It is traditional, when loading wire trolleys, to put the most fragile
items at the bottom.