• 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
Re: Stay Open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
  • Next by Date: Re: Apple event timed out
  • Previous by thread: RE: Stay Open
  • Next by thread: Re: Stay Open
  • Index(es):
    • Date
    • Thread