Re: Delay after keystrokes
Re: Delay after keystrokes
- Subject: Re: Delay after keystrokes
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 19 Jun 2004 08:32:17 -0700
In Panther it does. Not earlier (it rounds up).
--
Paul Berkowitz
>
From: Graff <email@hidden>
>
Date: Sat, 19 Jun 2004 11:21:27 -0400
>
To: AppleScript Users <email@hidden>
>
Subject: Re: Delay after keystrokes
>
>
You can just use the delay command. It accepts whole or fractions of a
>
second.
>
>
For example, to delay 1/2 of a second:
>
----
>
display dialog "start"
>
delay 0.5
>
display dialog "done"
>
----
>
>
- Ken
>
>
On Jun 19, 2004, at 2:49 AM, Mark Franken wrote:
>
>
> I have a script that sends keystrokes to an application. In order for
>
> the application to process the keystrokes I need to set a delay after
>
> each keystroke. I have been able to set this delay at about 1/100th of
>
> a second for my 450MHz G4 using a small loop. If I then run the script
>
> on a G5, I need to make my delay loop longer as the script runs
>
> through the loop quicker and the application seems to still require
>
> the same amount of real time to process the keystroke.
>
>
>
> Can anyone think of a way to set a delay to part of a second in real
>
> time no matter what processor is used ?
>
>
>
> Is there a way to set "delay" to less than one second ? (I take it
>
> "delay" will set the same delay no matter what speed the processor is
>
> running) or is there maybe a way to find the processor speed in order
>
> to calculate a delay loop ?
>
_______________________________________________
>
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.