On 1/31/06 3:20 PM, "Laine Lee" <email@hidden> wrote:
> Thanks! I haven't tried it yet, but I will, because after reporting success
> with letting Finder do the delaying, error -1762 once again appeared in my
> app. I'm perplexed, because something else that I've done in the script or
> in the IB seemingly unrelated to idling apparently has the power to affect
> this error.
I must immediately retract the above statement! (how embarrassing!)
Apparently I had intentionally rolled my script back to a version that would
result in the error (perhaps I just wanted to make sure the error number was
correct before posting a message), and forgotten about it. The following
construct, first included in my posting of 2:48 pm CST today, results in no
error.
property delaytime : missing value
property delayer : false
on idle
if delayer
tell application "Finder" to delay delaytime
set delayer to false
else
do idle stuff
end if
end idle
on process_something()
do_it
run_delay(2)
end process_something
on run_delay(the_delay)
set delaytime to the_delay
set delayer to true
end run_delay
Apologies, and thanks.
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden