View unanswered posts | View active topics It is currently Sat Apr 19, 2014 3:25 am



Reply to topic  [ 31 posts ]  Go to page: Previous  1, 2, 3  Next
 Dialectic Indigo Script 
Author Message
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 10:27 am
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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


Mon Apr 23, 2012 12:50 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 1:00 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post Re: Dialectic Indigo Script
I'm running 10.5.8...still can't get it to work.

Thanks,

Carl


Mon Apr 23, 2012 2:16 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 2:18 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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


Mon Apr 23, 2012 2:54 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post Re: Dialectic Indigo Script
You have to put "iTunes" in quotes, and you might need to supply the full executable file path.

_________________
Image


Mon Apr 23, 2012 3:13 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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


Mon Apr 23, 2012 3:25 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 3:58 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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 385 times ]
Picture 2.png
Picture 2.png [ 61.38 KiB | Viewed 385 times ]
Picture 3.png
Picture 3.png [ 39.46 KiB | Viewed 385 times ]
Picture 4.png
Picture 4.png [ 54.33 KiB | Viewed 385 times ]
Mon Apr 23, 2012 4:23 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 4:36 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post Re: Dialectic Indigo Script
Here ya go.

Thanks,

Carl


Attachments:
Picture 3.png
Picture 3.png [ 21.12 KiB | Viewed 370 times ]
Picture 1.png
Picture 1.png [ 52.28 KiB | Viewed 370 times ]
Mon Apr 23, 2012 5:49 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Mon Apr 23, 2012 6:17 pm
Profile WWW

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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


Mon Apr 23, 2012 6:42 pm
Profile

Joined: Nov 26, 2009
Posts: 1340
Location: Kalispell, MT
Post 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


Mon Apr 23, 2012 8:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 31 posts ]  Go to page: Previous  1, 2, 3  Next

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.