Re: Why won't this quit?
Re: Why won't this quit?
- Subject: Re: Why won't this quit?
- From: Gil Dawson <email@hidden>
- Date: Wed, 02 May 2018 16:32:44 -0700
Oh! I see. I get it!
Thanks, Steve.
--Gil
P.S. - I note that the app has to have the "Stay open" box checked during the
Save As... operation. Then it works!
> On May 2, 2018, at 2:31 PM, Steve Mills <email@hidden> wrote:
>
>
>> On May 2, 2018, at 16:05:03, Gil Dawson <email@hidden> wrote:
>>
>> Why won't this quit?
>>
>> logsome(return & "Starting" & return)
>>
>> repeat -- forever
>> logsome("Doing... " & time string of (current date) & return)
>> delay 20
>> end repeat
>> return
>
> Because you're stuck in an infinite loop. Use an idle handler instead.
>
> on idle
> log "idling"
>
> return 20
> end idle
>
> You might also want to put any initial setup in a run handler instead of it
> just hanging out in the main body. Mostly for neatness.
>
> on run
> log "starting"
> end run
>
> --
> Steve Mills
> Drummer, Mac geek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden