Re: Non-modal information window showing progress?
Re: Non-modal information window showing progress?
- Subject: Re: Non-modal information window showing progress?
- From: Harald E Brandt <email@hidden>
- Date: Wed, 25 Apr 2001 00:12:07 +0200
+--> Jeffrey W Baumann wrote 01-04-24:
>
On Monday, April 23, 2001, at 04:34 PM, Harald E Brandt wrote:
>
>
>I want to display a progress window that says which file is currently being processed. How can I do that??
>
>Not a word about such a thing is mentioned in AppleScript Language Guide or in Scripting_Additions.pdf!?
>
>
>
>It should be like a progress bar, but with some text or numbers that are updated as the script proceeds.
>
>
>
>With hope for help,
>
>
Several options:
>
>
1) Use a display dialog with a "giving up after 1" to show what file is being worked on. If each file takes only a few seconds to process this should be dynamic enough. Of course, it means it will takes x seconds longer to execute (where x is the number of files to process), unless you can get by this with an "ignoring application responses" clause. This is the cheapest and easiest to implement.
>
>
2) Have your script "say" what file it is working on. This could get very annoying, and could be more time consuming.
>
>
3) Get FaceSpan and display progress in a floating windoid. Absolutely doable with FaceSpan, but is it worth the investment? Your call.
>
>
4) Anyone know if Dialog Director can do this?
+-
1) Well, I had in mind a few hundred files!!! Perhaps 700!
Modal dialogs halting everything ARE ABSOLUTELY OUT!!!
A dialog box that halts all processing!!? That's ridiculous!
Processing MUST proceed while information is shown!
I expect it to be updated about once per second.
"ignoring application responses" is only effective for applications, not other commands or scripting additions (according to the Language Guide). At least I cannot get it to work for display dialog.
2) Speaking!? Annoying is just the first name!
3) I took for granted such a simple thing as a progession bar or similar "active" window would be something possible in native AppleScript or standard addition!? Especially if the script locks the entire computer while it runs.
Is there any (simple) way of making the script (in OS 9.1) run as a separate process/thread, or in the background?
(Locking the machine is not friendly!)
4) I received 2 private mails suggesting Dialog Director. I will probably download and have a look, although I am somewhat disappointed that an osax is needed for a simple progress bar/progress text. I want other people to be able to use my scripts.
With the Best Regards,
______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware
http://heb.surf.to