Launch Script Editor

Studio: Disable all controls (buttons) of the window

When coding your ApplesScript Studio application, sometimes it's useful to disable all the window's controls. By "controls" I mean every clickable piece, like buttons, popups, sliders and matrices.

You may want to disable them to avoid user clicks for a short time period, when some processing is occurring or when the application is not yet ready to handle these clicks. It's just a single line:

set enabled of every control of window 1 to false

To restore all the controls, just change the last word to true. I know you knew it :)

Remember: always consider the every magic keyword when you need to apply something to a group of elements.

4 comments:

Anonymous said...

It's an amazing post for all the web visitors; they will get advantage from it I am sure.

My web site vexxhost ratings
my web site: vexxhost consumer reviews

Anonymous said...

It is not my first time to pay a quick visit this web page, i am browsing this
website dailly and take nice data from here every day.

my web blog Http://Bestcloudcomputingoffers.Com

Anonymous said...

I will immediately grab your rss feed as I can't in finding your e-mail subscription link or newsletter service. Do you've any?

Kindly let me recognize so that I may just subscribe. Thanks.


Here is my homepage Bluehost Evaluations

Anonymous said...

Your style is unique compared to other folks I have read stuff from.
Thanks for posting when you have the opportunity, Guess I'll just bookmark this blog.

Feel free to visit my blog post ... clear