home *** CD-ROM | disk | FTP | other *** search
- /* ChangeNoteNames - This insanely useful macro goes through an entire
- hyperbook page by page. On each page, if there is an object called Note1,
- it gives it the same name as the page.
-
- (This was actually written for a reason: the first note on every page
- of the ARexx commands hyperbook is, like the page, supposed to have as
- its name the name of the command it describes. This macro caught the
- ones I missed.)
- */
-
- do i=1 to numpages()
-
- page = i || ':'
-
- call searchstart(page)
-
- found = 0
-
- do j=1 to numelements(page)
-
- if getname(objectnumber(page, j)) == 'Note1' then do
-
- call setname(objectumber(page, j), getname(page))
- found = 1
- end
-
- if found == 1 then break
- end
-
- if found == 0 then say 'Page' i '- Note 1 not found'
- end
-