Inconsistent window refreshing...
Inconsistent window refreshing...
- Subject: Inconsistent window refreshing...
- From: Matthew Broms <email@hidden>
- Date: Fri, 16 Jan 2004 08:41:43 -0500
I've got a strange problem in an AS Studio project where the same code works
in one handler, but not another. I have a two part process, each performing
a task on a large number of items. I update the screen to show the user
some status info. Here9s the code:
tell window "mainWindow"
--activate
set the contents of text field "curFolder" to parentFolder
set the contents of text field "curFile" to itemNum
set the contents of text field "oneOf" to countSum
end tell
In the first handler this does NOT work, but it works fine in the second.
It's all part of the same process and when the 1st handler finishes it's
job, it calls the 2nd. Neither of these identical code fragments are nested
in anything but a try statement and a repeat loop. The only way I can get
the it to work in the 1st handler is to UN-comment the 'activate'. This
forces the window respond as desired, but is bad because then the window is
continually front most when running. Therefore, during a long process, I
can't check mail or use my machine otherwise. The biggest issue I have is a
matter of understanding - I don't get why it works as prescribed in the 2nd
handler, but not the first - it's really irritating. Anyone have an idea?
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.