Thanks to all for your input. Here is the solution I came up with. All of
your suggestions were very helpful as usual. ^$GetRelativeName$ was the key.
The sripts takes all off the open docs, saves them then does a save as to
the runtime document root and closes each "saved as" doc. Finally it opens
the oringinal source files to bring you back to your original state.
;Note, you need to edit the string below to your kit's doc root
;Note, you need to edit the string below your dynamo doc root
^!If ^%index%=^%numberofopendocs% endsaveloop
;following line swaps the file path. Very handy command.
^!If ^%index%=^%numberofopendocs% endreopenloop
^!Prompt ^%numberofopendocs% Documents saved and copied to Dynamo doc. root:
David Paterson - Product Manager
33 Boston Post Road West, Suite 400,
Marlborough, MA 01752
From: Wayne VanWeerthuizen [mailto:Wayne@...
Sent: Thursday, April 19, 2001 6:23 AM
Subject: Re: [Clip] File save clip. Change root directory when saving
On Thu, 19 Apr 2001 03:13:37 -0000,
>Isn't it true that when setting a variable for path, that
>if any dir or filename in the path includes a space in
>the name, that the var content should be quoted?
As a general rule, the ^!Set command should usually use quotes.
Sometimes they are optional, but always using them saves you
having to remember the details, or forgetting to add them
if the parameters are changed. Personally, I don't put
quotes around numerical values, but any string value I do.
^!Set %Str%="String Value"
Remember that when multiples Set's are on the same line, the
quotes are required.
^!Set %Str%="String Value"; %Count%="1000"
Wayne M. VanWeerthuizen
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/