Page 2 of 3

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 10:27 am
by matt (support)
ckeyes888 wrote:
What's odd is that I can send commands to a remote machine from the TV computer
that Indigo is running on using:

tell application "Finder" of machine "eppc://Carl-Mac-2.local:xxx@192.168.1.35" to open "Carl HD:Applications:HotTub:Flying.app"

Oddly, this does work:

tell application "Finder" of machine "eppc://TV.local:xxx@192.168.1.80" to open "Macintosh HD:Applications:CID Indigo:Indigo Test"


Are both target Macs running the same OS version?

Also, note your username in the 2nd example is "TV.local" and not the username "TV" you show below. Lastly, try changing your user TV password temporarily to just "abc" and see if that works. It may not like a character used in the password.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 12:50 pm
by ckeyes888
I guess what I find interesting is that this script works fine:

tell application "Finder" of machine "eppc://TV:xxx@192.168.1.80" to open "Macintosh HD:Applications:CID Indigo:Indigo Test"

and this doesn't:

tell application "IndigoServer" of machine "eppc://TV:xxx@192.168.1.80"
# Log the number so we can see what it is
log "call from " & (contact_number as string)
set the value of variable "CIDnumber" to (contact_number as string)
end tell

Gets the "Unable to authenticate user." error.

Any help?

Thanks,

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 1:00 pm
by matt (support)
So any remote machine tell to IndigoServer fails, but it works to Finder?

What OS X version are you running? I suspect that it is Lion and Lion is being more particular about remote AppleScripts. Is anyone doing remote AppleScripts to Indigo on a Lion Mac? I haven't tried it myself.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 2:16 pm
by ckeyes888
I'm running 10.5.8...still can't get it to work.

Thanks,

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 2:18 pm
by matt (support)
What OS version is your other Mac running? I have a vague recollection of remote AppleScripting having issues between different OS X versions.

Also, try restarting both Macs. Maybe one of them got into a bad state.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 2:54 pm
by ckeyes888
Same...10.5.8. Re-started both...no joy.

If I run: tell application "Finder" of machine "eppc://TV:0@192.168.1.80" to open application iTunes

The error is: "The variable iTunes is not defined."

Thanks,

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 3:13 pm
by matt (support)
You have to put "iTunes" in quotes, and you might need to supply the full executable file path.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 3:25 pm
by ckeyes888
matt (support) wrote:
You have to put "iTunes" in quotes, and you might need to supply the full executable file path.


Doh...so running this: tell application "Finder" of machine "eppc://TV:0@192.168.1.80" to open application "iTunes"

Returns the error: "iTunes got an error: Can’t make some data into the expected type."

and opens iTunes on the machine I'm running the script from, not the remote machine.

Been playing with controlling another remote machine using:

set _Remote to "eppc://Laptop:xxx@192.168.1.25"
tell application "Opera" of machine _Remote
open "http://192.168.1.80:8176/controlpage?name=xxRemote%20Photo&useJS=True"
end tell

which works just fine, but adapting it to the Indigo server doesn't:

set _Remote to "eppc://TV:xxx@192.168.1.80"
tell application "IndigoServer" of machine _Remote
turn on "Bunkhouse Entry Light"
end tell

I use the same password on all my machines so I doubt that could be an issue.

Thanks,

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 3:58 pm
by matt (support)
On your IndigoServer Mac, how do you have Indigo starting up? Just by using the Start Local Server dialog (under Indigo 5 menu) to have it automatically launch on user login?

And take a screen capture of your OS X Sharing settings panel. I'd like to see how it is setup. Also press the Options... button on that panel. Do you have the Allow events from Mac OS 9 enabled? Try it with that both checked and not checked, and also make sure the password in that sheet is the same as your admin account user.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 4:23 pm
by ckeyes888
I just load the Indigo client manually. Again it will authenticate the "Finder", but not "IndigoServer"
I tried it with the OS 9 checked...no difference.

Here's some screenshots.

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 4:36 pm
by matt (support)
Let's see the screen shot for "Remote AppleEvents" panel. That is what is used for remote AppleScripting, not the other ones.

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 5:49 pm
by ckeyes888
Here ya go.

Thanks,

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 6:17 pm
by matt (support)
Maybe try selecting "only these users" and add your admin TV user?

Unfortunately, I'm about out of ideas. I'm not sure this specific thread will help, but you might try to find similar problems via Google:

http://lists.apple.com/archives/applesc ... 00197.html

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 6:42 pm
by ckeyes888
Thanks for looking into it.
Actually the Indigo server does launch at startup, if that makes a difference.

Curious about the path to IndigoServer. Can it be specified?

Carl

Re: Dialectic Indigo Script

PostPosted: Mon Apr 23, 2012 8:05 pm
by ckeyes888
Strange but by simply replacing the IP number with the computer name it
now works great.

From this:
tell application "IndigoServer" of machine "eppc://TV:xxx@192.168.1.80"

to this:
tell application "IndigoServer" of machine "eppc://TV:xxx@TV.local"

Carl