Archive of UserLand's first discussion group, started October 5, 1998.

Re: user.databases and moving frontier

Author:Thomas A. Creedon
Posted:8/20/1999; 1:12:02 PM
Topic:startup.startupScript revision
Msg #:9742 (In response to 9726)
Prev/Next:9741 / 9743

Try it, it works.

Kewl! I had some filespecs and some fully specified string paths in user.databases. I wanted to convert to relative string paths. I started to do it by hand but it quickly got tiresome. So I added this to my custom menu. I call it "Convert filespec to relative f".

local {
	adr = table.getCursor ()};
if typeOf (adr^) == filespecType {
	local {
		relativeF = string (adr^)};
	relativeF = ':' + (relativeF - file.folderFromPath (Frontier.getProgramPath ()));
	adr^ = relativeF}

Of course you should check this script over to make sure it's suitable to your purposes. This script is meant to deal only with converting user.databases fileSpec type entries to relative string paths. It makes several assumptions.

Have fun!

Toodle-looooooooo.........
Thomas





This page was archived on 6/13/2001; 4:52:01 PM.

© Copyright 1998-2001 UserLand Software, Inc.