A little Indigo script ...

Posted on
Tue Oct 27, 2015 7:51 pm
rlesperance offline
Posts: 333
Joined: Dec 01, 2004
Location: Québec, Canada

A little Indigo script ...

Hello,

I want to log by script to Indigo. In Indigo 5, I was able to do so. It doesn't work anymore. Can you help me to troubleshoot my little script ? Here it is:

Code: Select all
property theTextToLog : ""

LogToIndigo("Test------------------------------------")


on LogToIndigo(theTextToLog)
   tell application "IndigoServer"
      log theTextToLog
   end tell
end LogToIndigo

Posted on
Wed Oct 28, 2015 5:03 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: A little Indigo script ...

First off, I am not an Applescript expert :wink:

However, I have just run your script on an Indigo Client Mac and on my server.
When I execute your script on the Client - it runs and nothing happens e.g. no error but at the same time no message in the log.

If I run the script on the Server - I get the dreaded -600 error: Application isn't running.

What exactly are you seeing happen?

Posted on
Wed Oct 28, 2015 7:00 am
rlesperance offline
Posts: 333
Joined: Dec 01, 2004
Location: Québec, Canada

Re: A little Indigo script ...

Hi Jon ... Thanks for trying. I get an error -10810.

Posted on
Wed Oct 28, 2015 9:22 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: A little Indigo script ...

If you're running it from the script editor, it should also give some textual description of the error.

[MODERATOR NOTE] moved to the AppleScript forum.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Oct 28, 2015 9:26 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: A little Indigo script ...

A quick internet search revealed that this is likely that the Mac OS X process table is full. This can be alleviated by quitting some other applications.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Oct 28, 2015 5:19 pm
rlesperance offline
Posts: 333
Joined: Dec 01, 2004
Location: Québec, Canada

Re: A little Indigo script ...

Jay,

Your quick Google search revealed a process table problem ... but reading further, it concludes that it's not t a full process table problem. I have 32GB of RAM, so it's not a memory size problem neither.

I have to say that my "LogToIndigo" idler worked perfectly with Indigo 5. It stopped working with Indigo 6. I then stop using it. Now, I need it again. The Log function is included in IndigoServer's AppleScript library so I thought to give Indigo's forum a try. I understand that you are not an expert script designer, but since Indigo is scriptable, maybe someone out there can be of help.

Thanks for trying.



Robert

Posted on
Wed Oct 28, 2015 5:23 pm
rlesperance offline
Posts: 333
Joined: Dec 01, 2004
Location: Québec, Canada

Re: A little Indigo script ...

Hello autolog ... The Indigo client does not understand the Log command. Only IndigoServer can.

Posted on
Thu Oct 29, 2015 7:44 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: A little Indigo script ...

Can you give a little more background - where are you trying to run this script from?

It might be possible to do what you want using Python - it might be less problematic and there will be more people who can help.

Also what version of OSX are you using?

Posted on
Thu Oct 29, 2015 8:30 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: A little Indigo script ...

rlesperance wrote:
I have to say that my "LogToIndigo" idler worked perfectly with Indigo 5. It stopped working with Indigo 6. I then stop using it. Now, I need it again. The Log function is included in IndigoServer's AppleScript library so I thought to give Indigo's forum a try. I understand that you are not an expert script designer, but since Indigo is scriptable, maybe someone out there can be of help.


Regardless, the error you indicated above is from the process manager, which is not something Indigo can influence. The script as you wrote it should work fine - I can run it (when I'm not getting the well-known -600 error).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 29, 2015 10:30 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: A little Indigo script ...

What happens if you change this line:

Code: Select all
   tell application "IndigoServer"

to:

Code: Select all
   tell application "YourHDName:Library:Application Support:Perceptive Automation:Indigo 6:IndigoServer.app"

where YourHDName is the name of your Mac's main hard drive?

Image

Posted on
Thu Oct 29, 2015 10:40 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: A little Indigo script ...

Hey, can someone who's experiencing the -600 error try Matt's suggestion above? I wonder if that might solve that problem as well...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Oct 29, 2015 11:19 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: A little Indigo script ...

jay (support) wrote:
Hey, can someone who's experiencing the -600 error try Matt's suggestion above? I wonder if that might solve that problem as well...

Still get the -600 error :(

Posted on
Thu Oct 29, 2015 1:14 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: A little Indigo script ...

Oh, well, was worth a try. I didn't actually expect it to work.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Oct 30, 2015 4:41 am
rlesperance offline
Posts: 333
Joined: Dec 01, 2004
Location: Québec, Canada

Re: A little Indigo script ...

Thanks all for trying ... I will try with MacScripter forum.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 20 guests