Dialectic Indigo Script

Posted on
Mon Apr 23, 2012 10:27 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

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.

Image

Posted on
Mon Apr 23, 2012 12:50 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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

Posted on
Mon Apr 23, 2012 1:00 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

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.

Image

Posted on
Mon Apr 23, 2012 2:16 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

I'm running 10.5.8...still can't get it to work.

Thanks,

Carl

Posted on
Mon Apr 23, 2012 2:18 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

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.

Image

Posted on
Mon Apr 23, 2012 2:54 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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

Posted on
Mon Apr 23, 2012 3:13 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

You have to put "iTunes" in quotes, and you might need to supply the full executable file path.

Image

Posted on
Mon Apr 23, 2012 3:25 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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

Posted on
Mon Apr 23, 2012 3:58 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

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.

Image

Posted on
Mon Apr 23, 2012 4:23 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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
Attachments
Picture 1.png
Picture 1.png (50.38 KiB) Viewed 2754 times
Picture 2.png
Picture 2.png (61.38 KiB) Viewed 2754 times
Picture 3.png
Picture 3.png (39.46 KiB) Viewed 2754 times
Picture 4.png
Picture 4.png (54.33 KiB) Viewed 2754 times

Posted on
Mon Apr 23, 2012 4:36 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

Let's see the screen shot for "Remote AppleEvents" panel. That is what is used for remote AppleScripting, not the other ones.

Image

Posted on
Mon Apr 23, 2012 5:49 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

Here ya go.

Thanks,

Carl
Attachments
Picture 3.png
Picture 3.png (21.12 KiB) Viewed 2739 times
Picture 1.png
Picture 1.png (52.28 KiB) Viewed 2739 times

Posted on
Mon Apr 23, 2012 6:17 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Dialectic Indigo Script

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

Image

Posted on
Mon Apr 23, 2012 6:42 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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

Posted on
Mon Apr 23, 2012 8:05 pm
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: Dialectic Indigo Script

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

Who is online

Users browsing this forum: No registered users and 3 guests