Does anyone know the AppleScript Obj-C equivalent of the old idle command in AppleScript Studio… or how you might achieve similar results?
You can use an NSTimer, or performSelector_withObject_afterDelay_. I use something like this:
on fauxIdle_(n)
--**
-- put what you normally put in your idle handler here
--**
set theResult to result
if class of theResult is in {integer, real} and theResult > 0 then set n to theResult
my performSelector_withObject_afterDelay_("fauxIdle:", n, n)
end fauxIdle_
Thanks!