<script>on mouseUpfullhelpend mouseUpon mouseenterhelper "Click here for more help for HTML Grinder."end mouseenter</script>
</part>
<name></name>
<script>on enterkeyset the hilite of cd btn "find & replace" to truewait 5set the hilite of cd btn "find & replace" to falsesend mouseup to cd btn "find & replace"end enterkeyon converter thefile,thecontentsglobal totalchangesif totalchanges is empty then put "0" into totalchangesput thecontents into cd fld "holdText"-- put the hilite of cd btn "whole word" into wholerput cd fld findText into finderput cd fld changetext into changerput 0 into lastfindrepeat foreverif there is a window "grinding..." thenif iconnum =1then put 3 into iconnumelse put 1 into iconnumset i3_name of window "grinding..." to "grinder"&iconnumend ifset cursor to busy-- if wholer-- then find whole finder in cd fld holdtext-- elsefind string finder in cd fld holdtextif the foundchunk is not empty thenget word 2 of the foundchunkif it <= lastfindthen exit repeat --we've gone all the way through and started overelse put it into lastfindadd 1 to totalchangesput changer into the foundchunkelse exit repeatend repeatReplaceFile thefile,cd fld holdTextend converteron alldoneglobal totalchangesget totalchanges&&"occurrences were changed."put "0" into totalchangessend "alldone it" to homie()end alldone</script>