Greetings,
I've been running an applescript that peeks and pokes data into Indigo variables from a second computer. This has been working fine for a couple of months and yesterday stopped working. Yesterday I simultaneously updated Indigo 6 from beta 9 to beta 10 and upgraded Mountain Lion from 10.8.3 to 10.8.4 (the update was done on both computers).
Here's a sample of the problem code:
set user_name to "johnsmith" -- admin username
set pass_word to "123456" -- admin password
set uid to "501" -- user id of remote user
set host_name to "RemoteComputerName.local" --name of remote machine
--Check to see names of the remote drives
set s to "eppc://" & user_name & ":" & pass_word & "@" & host_name & "/Finder?uid=" & uid
using terms from application "Finder"
tell application s to set remoteDisks to list disks
end using terms from
--Place a value into an Indgo variable
set s to "eppc://" & user_name & ":" & pass_word & "@" & host_name & "/IndigoServer?uid=" & uid
using terms from application "IndigoServer"
tell application s to set the value of variable "Junk" to 99
end using terms from
So...The first part of the script works fine. The remote Finder is able to send the list of remote drives to the local variable named remoteDisks. But the second half of the script errors with "Authentication Error". The exact sequence is:
Run the script
A dialog box appears stating:
Authentication
Bad username or password. Authorization is required for "IndigoServer" on 'eppc://RemoteComputerName.local'.
And there are two fields, one for username, one for password. The Username field is prepopulated with johnsmith and the Password field is blank. I then enter the correct password and leave the "Add to keychain?" checkbox unchecked. Then I click the "OK" button.
I then get an Authentication Error - depending on which Applescript Editor I'm using either:
AppleScript Error IndigoServer got an error: Unable to authenticate user. (via Apple's AppleScript Editor)
or
AppleScript Execution Error IndigoServer got an error: User Authentication failure (from Script Debugger 5)
The odd thing is, this has been working fine for a couple of months. I simplified the code for clarity here but basically the code IS that simple. The username and password haven't been changed on either machine (both of which are/and have been/the same. The remote machine is correctly configured for allowing Remote Apple Events and, again, had been working fine. I'm guessing something in the last beta or in the last OSX update changed. The question is, can it change back? Or is there another solution for peeking and poaking Indigo variables remotely to another machine on the same network?
Thanks in advance.
-d