LinkMaker Link List Generating Script
Introduction
A post on alt.comp.freeware asked for a program that converts a text file containing a list of URLs into a HTML file. There were ideas and programs suggested, but I thought that this task can be done with a simple (i.e. small) script... hence LinkMaker.
What LinkMaker Does
LinkMaker does just what was asked for: you give it a file that contains a list of URLs (see what is recognised below) on each line, and it creates a HTML file with a list of these URLs as links.
What Is Recognised by LinkMaker?
LinkMaker looks for lines that have text in them. If the line is empty, it is simply ignored.
The 'logic' that LinkMaker uses to decide the URL type is as follows (in order):
- If it starts with http:// or ftp:// then it will be converted to a simple URL.
- If it has an @ sign, then it will be converted to a mailto: link.
- If it is neither of the above, then it is converted to a news: link.
Of course if you want to do so, you can change this logic to suit your needs. The decision is made using
a series of IF...ELSEIF...ELSE statements. Dig in
Downloading LinkMaker
Get from here. Note that you agree to use it at your own risk. Do not blame me if things go wrong. Enjoy
Future Additions?
As I say in the comments in the script's file, I do have some ideas, but I want to keep this simple. Please send me suggestions. There is also an email address in the script comments.
