Re: Change Idle Period
Re: Change Idle Period
- Subject: Re: Change Idle Period
- From: Andrew Oliver <email@hidden>
- Date: Thu, 26 Feb 2004 15:27:54 -0800
Sure, use a global
-- BEGIN SCRIPT
global idleInterval
on run
set idleInterval to 10 -- default value
end run
on doSomething()
if somecondition then -- for some reason...
set idleInterval to 600 -- change the idle timer
end if
end doSomething
on idle
doSomething()
return idleInterval
end idle
-- END SCRIPT
Andrew
:)
On 2/26/04 3:12 PM, "Greg Townsend" <email@hidden> wrote:
>
Is there any way to force a script to change its idle period from
>
outside of the idle handler? Thanks.
>
>
Greg
>
_______________________________________________
>
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.
_______________________________________________
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.