home *** CD-ROM | disk | FTP | other *** search
/ Netscape Plug-Ins Developer's Kit / Netscape_Plug-Ins_Developers_Kit.iso / EDITORS / grinder / wheels / find2.hqx / find_replace.hqx / background_3858.xml < prev    next >
Encoding:
Extensible Markup Language  |  1995-03-28  |  2.5 KB  |  44 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3858</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3127.css" />
  10.     <part>
  11.         <id>6</id>
  12.         <type>button</type>
  13.         <visible> <true /> </visible>
  14.         <reserved5> 0 </reserved5>
  15.         <reserved4> 0 </reserved4>
  16.         <reserved3> 0 </reserved3>
  17.         <reserved2> 0 </reserved2>
  18.         <reserved1> 0 </reserved1>
  19.         <enabled> <true /> </enabled>
  20.         <rect>
  21.             <left>2</left>
  22.             <top>189</top>
  23.             <right>21</right>
  24.             <bottom>206</bottom>
  25.         </rect>
  26.         <style>opaque</style>
  27.         <showName> <false /> </showName>
  28.         <highlight> <false /> </highlight>
  29.         <autoHighlight> <true /> </autoHighlight>
  30.         <sharedHighlight> <true /> </sharedHighlight>
  31.         <family>0</family>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>29540</icon>
  34.         <textAlign>center</textAlign>
  35.         <font>Chicago</font>
  36.         <textSize>12</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <name>Help</name>
  39.         <script>on mouseUpfullhelpend mouseUpon mouseenterhelper "Click here for more help for HTML Grinder."end mouseenter</script>
  40.     </part>
  41.     <name></name>
  42.     <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>
  43. </background>
  44.