On Idle Error
On Idle Error
- Subject: On Idle Error
- From: Michael Tompsett <email@hidden>
- Date: Fri, 21 Feb 2003 13:29:15 +0000
I am getting an error -1312 when trying to run an stay open script which
will perform a set task at a set time
on idle
set thetime to time of (current date)
set theRemainder to (thetime mod (3600))
set theHours to (thetime - theRemainder) / 3600
if (theHours = 13) then
display dialog ("its time")
return (60 * 70) --wait 70 mins before trying again
else
return (60 * 20) --wait 20 mins before trying again
end if
end idle
The script runs fine from script editor, but after adding 3on idle2, saving
as a run only, stay open application, on opening it displays the error
3Could not run the script because of a program error -13122.
This is on OSX 10.2.4. I have tried moving the script to different levels of
the drive but this has made no difference. Any ideas?
Thanks
Mikeyt
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.