Mailing Lists: Apple Mailing Lists

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

Re: Managing a queue...



On 2006-06-21, at 07:25:04, email@hidden wrote:


I have an applescript that checks a folder for any files that need processing---with an endless repeat loop.

Now I'm trying to add a checkbox to the interface for turning it on and off. Without having to quit.

So I modified the repeat loop to check for the boolean value of the checkbox every time it starts over. If the checkbox is true then the script would just continue. If it was false the script would exit the repeat.

Now I'm realizing that once I run the script, I can't un-check the checkbox. I'm locked out of the interface completely.

Anyone have any ideas about how I might get around this?

I think you'll want to run your check periodically rather than continuously. That way your app gets some breathing room for UI keystrokes and clicks. In AppleScript, the normal way to do this is in an idle handler.



Philip Aker email@hidden


_______________________________________________ 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
References: 
 >Managing a queue... (From: 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.