Re: EPPC & multiple users
Re: EPPC & multiple users
- Subject: Re: EPPC & multiple users
- From: Martin Orpen <email@hidden>
- Date: Wed, 02 Mar 2005 22:17:52 +0000
on 2/3/05 8:39 pm, doug rogers at email@hidden wrote:
> On Mar 2, 2005, at 12:57 PM, email@hidden
> wrote:
>
>> Together with the odd behaviour of "eppc://" - which is so badly
>> behaved
>> that it is impossible to test reliably using multiple accounts on a
>> single
>> Mac -
>
> 'Choose URL showing remote applications' still refuses to return a
> valid nnn.nn.nn.nn URL here. Did the very first time i tried, but never
> since. Glad, in a way, to know it just ain't my problem.
I spent my train journey home digging deeper into this.
To get eppc working on multiple accounts I do the following:
1. Reboot and make sure that the machine is being used by only one user
2. Run a script like:
tell application "Finder" of machine "eppc://user1@localhost"
set foo to name of window 1
end tell
Which will return the name of window 1 as expected.
3. User fast user switching to log in as a new user, open a Finder window
then switch back to the user 1 account.
4. Test the script again. No matter what information is placed before the @
user2 login and password, whatever, the script will return the same result
as it did when you ran it first time.
5. Change the host name from localhost to 127.0.0.1, authenticate using
either the admin or user2 account details and the script will return the
name of the window for user2
6. You can switch back and forth between the users in your script by
changing domains.
Changing the usernames (passwords or not) makes no difference whatsoever!
This works OK until you quit whatever application you were running the
script from. I checked using netstat and quitting will close down the eppc
connections - I thought that there might have been some latency in this.
But when you restart your script you'll find that no matter what domain you
use it will now only connect to one user :-(
The only option is to reboot, run the script as a single user, launch the
second user connection and then reconnect using a different hostname.
This isn't right and it's confusing if you authenticate as the admin from
the admin account but find yourself getting results from another user.
--
Martin Orpen
_______________________________________________
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