Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Click event to exit repeat loop



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?

Thanks for any help.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.