Enhanced CSD
by Andrew Hersee

Have you ever run a program which gives the error '<filename> not found', and yet you can see the file mentioned in the same directory viewer as the program? The problem is usually due to the Currently Selected Directory (CSD) being set to a different directory.

The CSD is the directory you would be in if you entered the command line with F12 and typed '*.'. If the computer is asked to access a file without a pathname then it looks inside the CSD. Opening a directory in the Desktop does not set the CSD, so being able to see the file in a directory viewer does not mean that a program which does not use full pathnames will be able to access it. This application allows easy setting of the CSD from the Desktop.

Run the application to install it on the icon bar. To set the CSD simply drag the CSD icon to the directory viewer you want to become the CSD.

If you drag the icon to the other side of the icon bar then it will move there, or alternatively dragging it to the backdrop will stick it there. The application is compatible with most backdrop applications including Acorn's Pinboard supplied with RISC OS 3.

Once you are satisfied with the icon's position you can lock it so that it cannot be moved accidentally. To do this click Menu over the icon and choose 'Lock' from the menu. A tick to the left of 'Lock' signifies that it is already locked. It may be unlocked by choosing 'Lock' again. The 'Display CSD' entry may be toggled on and off by chosing it. If it is on, then each time you drag the CSD icon to a directory, the pathname will be displayed until the next mouse click. If it is off you will simply hear a beep when you change the CSD. The 'Save State' option will save the present state of the application so that all options and positions will be remembered the next time it is loaded.

Clicking Adjust on the CSD icon will either beep if you have not set the CSD or open the Filer window containing the directory you last set to be the CSD.

 RISC User 1992
