home *** CD-ROM | disk | FTP | other *** search
- /* Example ARexx script for ClipHistory 2.0+.
- * Shows some information about the history.
- */
-
- OPTIONS RESULTS
- ADDRESS CLIPHISTORY0
-
- HistoryInfo STEM Info.
-
- IF Info.Items > 0 THEN DO
- Chrs = 0
- TextClips = 0
-
- DO i = 1 TO Info.Items
- ItemInfo i STEM Clip.
-
- IF RC = 0 THEN DO
- Chrs = Chrs + Clip.NumCHRS
-
- IF Clip.NumCHRS > 0 THEN
- TextClips = TextClips + 1
- END
- END
-
- SAY "The history contains" Info.Items "clips. There are" TextClips "clips that contain text."
- SAY "Average clip size is" Info.Size / Info.Items "bytes."
- SAY "There is a total of" Chrs "IFF FTXT CHRS chunks."
- END
- ELSE
- SAY "The history is empty"
-