Re: Stay Open
Re: Stay Open
- Subject: Re: Stay Open
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 11 Jan 2001 15:08:37 -0500
- Organization: [very little]
Xandra Lee wrote:
>
Subject: Re: Stay Open
>
Date: Thu, 11 Jan 2001 05:33:12 -0500
>
From: Xandra Lee <email@hidden>
>
To: <email@hidden>
>
>
Some really dumb idle questions:
>
1. Do scripts with idle routines always begin with a run statement
>
ie:
>
on Run
>
idle
>
end Run
No. They'll actually get two idle events sent immediately if set up
that way, one the explicit call and one automatically when the run
handler ends. You can have no run handler or a run handler w/o an idle call.
>
2. Can you pass parameters to idle handlers
>
ie:
>
set x to 15
>
>
on idle(x)
>
set y to (x + 20)
>
return y
>
end idle
No. But, of course, you can send values in globals or properties.
>
3. Can an idle handle return any variable besides the time it should idle?
No. But, of course, you can retain values in globals or properties.
>
>Stephen Swift wrote:
>
>
>> So I would use a stay open script if I wanted to change my desktop picture
>
>> every 15 min?
>
>
>
>Absolutely!
>
>
>
>on idle
>
> [whatever your script does to change desktop pictures]
>
> return (15 * minutes)
>
>end idle
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[1/11/01 3:08:18 PM]