• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
On Idle Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: On Idle Error
      • From: Emmanuel <email@hidden>
  • Prev by Date: SOAP broken in Mac OS X 10.2.x? (Google Web API)
  • Next by Date: http://konfabulator.deskmod.com/?site=konfabulator
  • Previous by thread: Re: SOAP broken in Mac OS X 10.2.x? (Google Web API)
  • Next by thread: Re: On Idle Error
  • Index(es):
    • Date
    • Thread