Re: Remote Apple Events issues
Re: Remote Apple Events issues
- Subject: Re: Remote Apple Events issues
- From: Matt Neuburg <email@hidden>
- Date: Sun, 19 Apr 2009 08:48:30 -0700
- Thread-topic: Remote Apple Events issues
On Sun, 12 Apr 2009 13:18:31 -0700, Rob Lewis <email@hidden> said:
>Trying to do a very simple thing: let one Mac on my LAN change tracks
>on iTunes running on another Mac.
>
>This oughta do it, right?
>
>using terms from application "iTunes"
> tell application "iTunes" of machine "eppc://
>user:email@hidden"
> next track
> end tell
>end using terms from
>
>I know the account on AnotherMac is logged in and iTunes is running,
>and remote Apple Events are enabled. But I just get errors like
>"remote access isn't allowed" or "unable to authenticate user" or a
>password request dialog with a completely different user account name
>filled in.
>
>Why is this a problem? I read on some old web page that the target
>account has to be an administrator on the remote machine; is this
>true? Bad news if so.
>
>I want this to work without any need to input passwords etc.
Restart both machines. The eppc protocol can get very borked very easily.
This can happen after sleep (I have often seen sleep be sufficient to cause
exactly the sort of errors you describe), or after giving a wrong
username/password pair; you have probably just hosed yourself in the course
of testing.
After a clean restart on both machines, I just did this and it worked fine:
set s to "eppc://mattleopard:email@hidden/iTunes?uid=502"
using terms from application "iTunes"
tell application s
get name of every playlist
end tell
end using terms from
User 502 on the target machine is not an admin. But the mattleopard/teehee
pair is an admin account on the target machine. This latter point confuses a
lot of people; see p. 392 of my book where I stress it.
So yes, this does work, but remember, eppc is old, tired, and crappy. There
are much better ways to exercise cross-machine control. You will be able to
get this to work, just to convince yourself, but even so, you should
consider hitching your wagon to some other start. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden