Activation
Activation
- Subject: Activation
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 21 Sep 2003 20:41:09 -0700
This feels like a bug, but I suppose it's more a limitation.
When my project launches, it needs to first get a lot of data from another
application. That can take some time, so I created a Progress window - sort
of like a splash screen - to give the user information on what's happening,
frequently updating the text on the window. I put this into the 'will finish
launching' handler. When all done, then the main window is made visible in
the 'launched' handler, and all is well.
This worked fine. But now I want to include just a couple of little things
for the app to do when it is activated - brought back to the front after the
user visits another application. So I put this bit of code into a 'will
become active' event handler. It's fine with me for that to also run when
launching is all finished.
The problem is that now that I have a 'will become active' handler, the app
won't display the progress window in the ' will finish launching' handler,
since 'will become active' always runs after 'will finish launching'
handler, as the ASS Terminology Reference says, even though I explicitly
tell it to 'show'. I suppose that makes sense.
So how do I display the Progress window when launching, and still have some
other code run when the app is activated? ('activated' doesn't cooperate any
better than 'will become active'.) I can't put all the update stuff into
'will become active' since I don't want it to run every time the user clicks
back to the app, unless he sets that behavior.
There should be some mode for 'will become active' that renders it
inoperative, if so desired, at launch.
Has anyone found a way?
--
Paul Berkowitz
_______________________________________________
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.