I'm using a script to interact with a window in an application but
can't seem to be able to produce a click event when it is in one of my
repeat loops for the repeat loop to ever stop. An example of this is
the Debug Test application in Developer/Examples/Applescript Studio/
Debug Test. If I deselect the "Visible at launch time" and rebuild,
then run the following script in an editor, I get stuck in the "on
runforever()" handler.
tell application "Debug Test"
activate
tell window "Main"
set visible of it to true
end tell
end tell
I tried leaving the "Visible at launch time" on for my app but I have
several windows before this and it doesn't seem to let it work. Any
ideas how I can let a click event happen while I'm in a repeat loop
like the example above?