home *** CD-ROM | disk | FTP | other *** search
-
-
- Since there is ENote, it is time to make the filenote more useful.
- XNote (eXecute fileNote) executes the filenote of a file. This way
- you can use the filenote system in a similar way as the project icon
- is used by the Workbench. Because it is a text string that will be
- executed, filenotes still will be readable and clear in its meaning.
-
- Because the Workbench is a bad environment for XNote, especially
- under OS 1.x, execution from the Workbench is not supported.
- Furthermore the Workbench has no need for a tool like XNote. Its
- real value is found in the commandline environment, which has no
- simple project type so far.
-
- Imagine you have a fancy printer program which can print almost
- anything in any format, margins and fonts. Beside from the file it
- must print, you must give it a lot of parameters. Let's say, you
- must print address labels. The left margin is 20 mm, the top margin
- is 15 mm, the font is Universe and its size is 15 points. A command
- may look like "Print -ml20 -mt15 -u15 LabelFile". Two months after
- its first usage, you want to print that label again. Well, now
- there is XNote, making life easy. After you found how to print the
- label, you attach a filenote to the labelfile:
-
- > FileNote LabelFile "Print -ml20 -mt15 -u15 LabelFile"
-
- You now can print the label by typing:
-
- > XNote LabelFile
-
- Because the name "LabelFile" is already in use, it is known in the
- environment. XNote refers to it when it finds the char '@' in the
- filenote. Therefore the command:
-
- > FileNote LabelFile "Print -ml20 -mt15 -u15 @"
-
- has the same effect. It is more economical with the 79 available
- characters of the filenote and it automatically follows a rename of
- the file. The replacement will be put between double quotes
- resulting into:
-
- > Print -ml20 -mt15 -u15 "LabelFile"
-
- This way filenames with embedded spaces are handled properly.
-
- If you are not content with the usage of the char '@', recompile or
- just replace it in the executable. Type "XNote" on the commandline
- and a message will be printed. The character between the single
- quotes is used as the key character. Replacing it with a hex editor
- results in usage of the new character.
-
- A secondary result code is returned. If the program fails, type
- "why" to know why it failed.
-
- For demonstration purposes, things are exaggerated. Almost all
- files in this directory have executable filenotes. Look at them
- using "List" or try them out by typing "XNote <file>".
-
- XNote and all accompanying files are copyrighted. XNote and all
- accompanying files are freeware. Copyright 1992 by D.W.Reisig.
-
- Dirk Reisig
- de Woudweeren 10
- 1151 AV Broek in Waterland
- the Netherlands - Europe
-
-