Invalid schedule (5010)
Hi, I have a problem with AppleScript after I updated to version 5.2.6 and was wondering if there is a bug or not.
Script:
tell application "SecuritySpy"
set schedule "Unarmed 24/7" camera number 3 mode MotionCapture
end tell
replays with error "SecuritySpy got an error: Invalid schedule" number 5010
I can Armed 24/7 to the camera but will not unarmed using the above script.
Has anybody else experience any problems or is it within my system?
Script:
tell application "SecuritySpy"
set schedule "Unarmed 24/7" camera number 3 mode MotionCapture
end tell
replays with error "SecuritySpy got an error: Invalid schedule" number 5010
I can Armed 24/7 to the camera but will not unarmed using the above script.
Has anybody else experience any problems or is it within my system?
Comments
-
I've just tested your script and it works just fine for me. I'm not quite sure what to suggest. Are you sure you are specifying the schedule name correctly as "Unarmed 24/7" with no extraneous spaces or other characters? You could also try a restart of the Mac perhaps. Does that do it?
-
Thanks for the help, for some reason when I clicked "Compile" in my home automation software it would change Unarmed 24/7 to UnArmed 24/7 that cause my error message. I was writing it out correctly but didn't notice it was changing after it compile to you help me draw attention to that exact word.
