DirPage
DirPage helps a desktop user to create a simple TOC HTML formatted page that contains the list of Web browser-viewable files that are located under a directory. It does it with a simple drag-drop operation.
Description
Overview
Once a directory is dropped, DirPage collects the list of files that are located under that directory. This operation is non-recursive; the sub-directories are not listed. It then creates a TOC file under that directory with the name "0-toc.htm". It will contain the list of HTML files, the list of TXT files, the list of GIF and JPG images then the list of PDF files.
Variants
- Default:
There is no other variant.
Tagged Drops
There is no tagged drop.
Untagged Drops
Only one untagged directory drop is accepted.
Clipboard Use
The clipboard is not used.
Possible Metascript Messages
- ERR: exit = nn
Where nn is a numeric exit code. There is no error handling code within the script.
Other Considerations
No explicit Clear List command is required
Script Effects
Script creates an html-formatted file.
Requirements
- Executable:
pythonw
- Script file(s):
DirPage.py for all variants; it must be located under the scripts/py sub-directory.
- IO access:
Creates the 0-toc.htm file under the specified directory.
Side Effects:
- Clipboard Usage:
No
- No other side effect.
Generating a TOC file
- Make sure that nothing is displayed on the green target area
- Using a file browser (ex. the Windows Explorer):
- Make the destination directory visible (expanding directories as necessary)
- Press the mouse button when the cursor is on the destination directory, drag the cursor to the D&Do target area then release the button.
- You should observe that:
- A 0-toc.htm file has been created at the destination directory.
- The drop target should display nothing
- The status message displays: INF: Exit = 0
This is it. You may try the newly created TOC file with your Web browser.
Source
Please, add authors and owners for each version of the metascript
Owner(s):
- Company:
Big Feet Software
- License:
Freeware; you may use and modify this metascript and related script files. You cannot claim ownership of their original version.
Author(s):
- Name:
Marcel St-Amant
- Country:
CANADA
- Release Date:
2003-06-13
- Version:
1.0