Re: How can I display the number of records processed using a thermometer
Re: How can I display the number of records processed using a thermometer
- Subject: Re: How can I display the number of records processed using a thermometer
- From: Graff <email@hidden>
- Date: Mon, 05 Jan 2004 20:24:25 -0500
The number of files part is fairly easy. You just whip up some code
(which you already seem to have) that walks the hierarchy and puts all
of the files into a list. You then do this:
set fileCount to the count of theList
The variable fileCount will now hold the number of files to be
modified. You would then do:
repeat with theFile in theList
-- do something here with the file
end repeat
The second question is a little tricky. You either need to use an OSAX
that provides a dialog box with progress bar or I believe you can do
this in AppleScript Studio:
<
http://www.24usoftware.com/AppearanceOSAX>
<
http://developer.apple.com/documentation/AppleScript/Reference/
StudioReference/sr5_control_suite/chapter_5_section_17.html>
- Ken
On Jan 5, 2004, at 7:34 PM, Mark Clyma wrote:
Scripters,
I have a script that reads a folder (and all of its sub-folders) of
HTML files and deletes one HTML line in each file. Currently I have
about 180 files to process. It works great except when it runs I
don't know anything about how many records have been processed and how
long it will take to finish the job. If possible I would like to
display a message box that shows the total number of files that will
be processed and the current number of files that have been processed
(EX.: 15 files out of 180 have been processed). It would be great if
I could also display a horizontal "thermometer" that visually shows
the current number of files that have been processed.
My questions are:
1. Is there a quick easy way to get the total number of files found
in a folder and all of its sub-folders? This would be for initially
displaying the total number of records (files) needed to be processed.
2. Is there some Applescript code that shows how to build/display a
horizontal "number of records processed" thermometer?
_______________________________________________
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.