View unanswered posts | View active topics It is currently Sat May 18, 2013 5:06 pm



Reply to topic  [ 4 posts ] 
 AppleScript Error 
Author Message

Joined: Apr 02, 2006
Posts: 117
Location: Philadelphia, PA
Post AppleScript Error
At Startup, I'm running the nifty embedded AppleScript someone posted that gets the status of all devices. Modified for compatibility thusly:

Code: Select all
with timeout of 60 seconds
    try
        repeat with curDevice in devices
            status request (curDevice)
        end repeat
    end try
end timeout


I've gotten rid of the "delay" as instructed but pretty much everything else is as it was. The actual Trigger Action is set to delay for .25 minutes. This is so it doesn't collide with another Startup action. Two things are not right:

1) This worked without problem in Beta 3. With Beta 4, I get the following error when I start the client:

Code: Select all
  Trigger Action     Get All Status
  Error              MainProcessTimersAndEvents() caught exception: IllegalParameterError


It works, but that error shows up every time.

2) This is supposed to run on "Indigo Server Startup" yet it doesn't run until I start the client. I am not running "client/server as single application," and I am set to "Auto start Indigo Server on user login..."

My computer automatically starts up at 6:30 AM (I am the only one here, so it auto logs-in), and I don't usually get to it until about 7:15 AM. If the server is starting at login, I should see an event log full of device statuses when I get to the computer and start the client. Instead, what happens is I start the client and then this script runs.

Is "Indigo Server Startup" in a Trigger action really "Indigo Client Startup" (that's effectively what it was in 1.8...maybe the name changed but the action didn't keep up), or is the server actually NOT starting up on its own despite my not running the two as one?

Byron

_________________
Mac mini 1.25, 1024MB RAM; Indigo 2.0


Fri Sep 29, 2006 11:46 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11679
Location: Texas
Post Re: AppleScript Error
Hurray! This explains your previous problem with the Indigo Server not launching on login. It was trying to launch, but was failing because of the error shown above. The server launches a bit differently when the client starts it up versus when it launches on login by itself, which explains why in one case you get the error message above but in the other case (login launch) it failed silently to launch the server at all.

Anyhow, this will be fixed in beta 7. The fix should prevent the error message above, and get Indigo Server launching on login for you.

To answer your question, that Trigger type (Indigo Server Startup) does execute when the server launches, not the client. The problem is the server was crashing because you were using a delay on a startup trigger. This bug will be fixed in beta 7. Additionally, I added some error handling code that will help prevent the server from crashing in this manner regardless of the failure...

Regards,
Matt


Tue Oct 03, 2006 3:02 pm
Profile WWW

Joined: Apr 02, 2006
Posts: 117
Location: Philadelphia, PA
Post 
Matt,

To quote MacAddict magazine, "Freakin Awesome!" :D

Looking forward to the new B, and glad to have been of service!

Byron

_________________
Mac mini 1.25, 1024MB RAM; Indigo 2.0


Tue Oct 03, 2006 8:48 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11679
Location: Texas
Post 
Hi Byron,

Beta 7 is posted -- let me know if it fixes all the problems.

Regards,
Matt


Thu Oct 05, 2006 2:23 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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.