why does the delay in an applescript editor increase by itself?...***
so im trying to write myself a (very simple) auto typer for an mmorpg i play. i found a script for such an application on http://www.sythe.org/archives/438387-how-make-your-own-mac-auto-typer.html and proceeded to edit it for myself. the problem im having is that the delay is set to 3 for every line, but for **** sake, it just keeps slowing down after about a dozen lines. i have tried shortening the application to only 10 lines, and then clicking the continue button, but upon clicking the continue button it simply keeps upping the delay... WHY THE **** MUST YOUR EDITOR NOT WORK APPLE?!?!?!?!?!
and when i had the application set to do about 30 lines, again the frequency of the typing would significantly decrease after it typed my message about a dozen times. my script is as follows:
tell application "System Events"
set texttosay to "Sample Text"
display dialog "Text to say:" default answer ""
set texttosay to the text returned of the result
repeat
activate application "Old School RuneScape"
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
delay 3
keystroketexttosay
keystrokereturn
display dialog the "Do you want to quit?" buttons {"Continue", "Quit"} default button 1
if the button returned of the result is "Quit" then
exit repeat
end if
end repeat
end tell
MacBook Pro, OS X Mavericks (10.9), fix your mfing AppleScript Editor!!