Re: Repeat until ...the user chooses to stop?
Re: Repeat until ...the user chooses to stop?
- Subject: Re: Repeat until ...the user chooses to stop?
- From: deivy petrescu <email@hidden>
- Date: Tue, 27 Nov 2007 16:22:42 -0500
On Nov 27, 2007, at 14:48, Philip Aker wrote:
On 2007-11-27, at 09:15, Dane Springmeyer wrote:
… applescript does not support sub-second timeouts, so it seems
that this approach won't quite work.
That's no longer the case. You can return a fraction of a second.
This should illustrate:
on run
set isot to ((current date) as «class isot») as text
do shell script "echo '" & isot & "' > ~/Desktop/isot.txt"
end run
on idle
set isot to ((current date) as «class isot») as text
do shell script "echo '" & isot & "' >> ~/Desktop/isot.txt"
return 0.4
end idle
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Just to clarify.
Actually I have never said that "applescript does not support sub-
second timeouts".
I said that display dialog do not allow for delays less than 1 (try it).
Actually I am not sure if it started with Tiger or with an Tiger
upgrade, AS supports delays of less than a second.
However, in my reply, I said try Smile. With Smile the op should be
able to get what the op wants.
Deivy
_______________________________________________
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