View unanswered posts | View active topics It is currently Tue May 21, 2013 9:05 am



Reply to topic  [ 9 posts ] 
 Delete Time Date Action Gives Error 
Author Message
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Delete Time Date Action Gives Error
This command in an Embedded script gives me an error in the log even though it does remove the Time Date Action;

Code: Select all
delete time date action "_hallMotion_"
.


Error script error: time date action "_hallMotion_" of «script» doesn’t understand the delete message. (-1708)


Any ideas?

thanks,

bob


Tue Jun 07, 2011 5:51 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6651
Location: Austin, Texas
Post Re: Delete Time Date Action Gives Error
If that's an embedded AppleScript try wrapping it in a 'tell application "IndigoServer"' block. you may be experiencing the AppleScript component corruption issue.

_________________
Jay (Indigo Support)
Image


Tue Jun 07, 2011 9:52 am
Profile WWW
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: Delete Time Date Action Gives Error
Jay

I just got some more errors, do see anything wrong in the script below?

2011-06-06 02:25:58 Error script error: around characters 61 to 98
2011-06-06 02:25:58 Error script error: time date action "hallMotion_" of «script» doesn’t understand the delete message. (-1708)
2011-06-06 04:53:53 Error script error: around characters 61 to 98
2011-06-06 04:53:53 Error script error: time date action "hallMotion_" of «script» doesn’t understand the delete message. (-1708)
2011-06-06 15:36:52 Error script error: Can’t make class time date action. (-2710)
2011-06-06 17:02:38 Error script error: Can’t make class time date action. (-2710)
2011-06-06 18:46:44 Error script error: Can’t make class time date action. (-2710)
2011-06-06 19:01:35 Error script error: Can’t make class time date action. (-2710)
2011-06-06 21:26:00 Error script error: around characters 68 to 84
2011-06-06 21:26:00 Error script error: Expected end of line, etc. but found class name. (-2741)
2011-06-06 21:26:43 Error script error: around characters 88 to 104
2011-06-06 21:26:43 Error script error: Expected end of line, etc. but found class name. (-2741)
2011-06-06 21:27:08 Error script error: around characters 103 to 104
2011-06-06 21:27:08 Error script error: Expected end of line, etc. but found “"”. (-2741)


Here is my script;

Code: Select all
set theTimeout to 600
   set varName to "hallMotion_"
   
   set value of variable varName to "false"
   
   set theName to "_" & varName
   set theDescription to "This is a timer to turn off " & varName
   set theTriggerTime to ((current date) + theTimeout)
   
   make new time date action with properties {name:theName, description:theDescription, time trigger type:absolute, date trigger type:absolute, absolute trigger time:theTriggerTime, enabled:true, auto delete:true}
   
   set action type of action step 1 of time date action theName to modifyVariable
   set variable action of action step 1 of time date action theName to setValue
   set variable name of action step 1 of time date action theName to varName --var name here
   set variable value of action step 1 of time date action theName to "true" --var value here


thanks,

bob


Tue Jun 07, 2011 10:05 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6651
Location: Austin, Texas
Post Re: Delete Time Date Action Gives Error
Is it embedded and did you wrap it in a tell block as suggested above?

_________________
Jay (Indigo Support)
Image


Tue Jun 07, 2011 10:19 am
Profile WWW
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: Delete Time Date Action Gives Error
Jay,

They are both embedded, one creates the Time Date Action and the other deletes it. Do I wrap them both?

I haven't tried it yet as I'm at work :wink: I'll give it a go when I get home.

regards,

bob


Tue Jun 07, 2011 10:29 am
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6651
Location: Austin, Texas
Post Re: Delete Time Date Action Gives Error
Try it on one - if that fixes it then it appears you've been bit by the corrupt AppleScript component bug - any script you edit will need to be wrapped. Scripts that are currently running don't seem to be affected - it's only a compiler scoping problem of some type.

_________________
Jay (Indigo Support)
Image


Tue Jun 07, 2011 11:06 am
Profile WWW
User avatar

Joined: Jun 14, 2006
Posts: 500
Post Re: Delete Time Date Action Gives Error
Jay,

Fixed it. If you try to delete a Time Date Action and it doesn't exist then you get an error.

I changed my embedded script from

 
Code: Select all
delete time date action "_hallMotion_"


to

Code: Select all
if exists time date action "_hallMotion_" then
    delete time date action "_hallMotion_"
end if


and now no errors.

bob


Wed Jun 08, 2011 8:37 am
Profile

Joined: May 13, 2006
Posts: 66
Location: Copperas Cove, TX
Post Re: Delete Time Date Action Gives Error
I had this bug too, I just did a hard drive replacement and installed fresh from the Snow Leopard DVD and ran software update. I didn't transfer my Home directory from my previous install, because I wanted everything to be as clean as possible.

I've got Indigo running with my saved database and the Applescript corruption seems to have followed, I still have to wrap everything in tell application "IndigoServer". Any idea if this could be connected with Indigo or my Indigo database? (I'm running the Indigo 5 beta with the same issue now too.)

Thanks!


Wed Jun 15, 2011 8:23 pm
Profile WWW
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 6651
Location: Austin, Texas
Post Re: Delete Time Date Action Gives Error
We've tried other people's database file that have the problem and weren't able to replicate, but feel free to send us yours (to indigo DASH support AT perceptiveautomation DOT com) and we'll try it out.

This is the first report that reinstalling didn't work - not sure what to make of it. Some questions:

1) Did you copy over Indigo or install from scratch?
2) How did you move over your Indigo DB files/preferences/scripts?
3) Did you use migration assistant to move ANY files?

_________________
Jay (Indigo Support)
Image


Thu Jun 16, 2011 7:44 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.