Topic: Wildfile - Automatic Exit (1 of 5), Read 22 times
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Saturday, January 07, 2006 04:00 AM

I have a procedure which builds an input file "~ZTTag.inp" for the wildfile macro which runs one of my macros.
This creates a file (containing jpeg filenames & comments).

This starts a new instance of Vedit & works OK, but ends with an Exit prompt "Save Comments.txt".
I want Vedit to automatically save the output file & exit.

I include a couple of CR/LF at the end of "~ZTTag.inp", but this does not seem to work, neither does does a -q option on the command line which invokes Vedit:-

C:\vedit\vpw.exe -e -s2 -c'rinp("#ZTTemp\~ZTTag.inp") call_file(100,"wildfile.vdm")'


Any ideas?

 


Topic: Re: Wildfile - Automatic Exit (2 of 5), Read 23 times
Conf: Wildfile, Other macros
From: Christian Ziemski
Date: Saturday, January 07, 2006 06:31 AM

On Sat, 07 Jan 2006 04:00:00 -0500, Ian Binnie wrote:

>I have a procedure which builds an input file "~ZTTag.inp" for the
>wildfile macro which runs one of my macros.
>This creates a file (containing jpeg filenames & comments).
>
>This starts a new instance of Vedit & works OK, but ends with an
>Exit prompt "Save Comments.txt".
>I want Vedit to automatically save the output file & exit.
>
>C:\vedit\vpw.exe -e -s2 -c'rinp("#ZTTemp\~ZTTag.inp")
>call_file(100,"wildfile.vdm")'

Does your "~ZTTag.inp" have the "3" at the end to let wildfile do a
save&exit?

(Just a guess, I never used the input redirection until today.)


Christian

 


Topic: Re: Wildfile - Automatic Exit (3 of 5), Read 24 times
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Saturday, January 07, 2006 05:28 PM

On 1/7/2006 6:31:01 AM, Christian Ziemski wrote:
>On Sat, 07 Jan 2006 04:00:00 -0500, Ian
>Binnie wrote:
>
>>I have a procedure which builds an input file "~ZTTag.inp" for the
>>wildfile macro which runs one of my macros.
>>This creates a file (containing jpeg filenames & comments).
>>
>>This starts a new instance of Vedit & works OK, but ends with an
>>Exit prompt "Save Comments.txt".
>>I want Vedit to automatically save the output file & exit.
>>
>>C:\vedit\vpw.exe -e -s2 -c'rinp("#ZTTemp\~ZTTag.inp")
>>call_file(100,"wildfile.vdm")'
>
>Does your "~ZTTag.inp" have the "3" at
>the end to let wildfile do a
>save&exit?

Yes. The only issue is that I am prompted to save the file.
I am looking for a way to cause this to be automatically saved.

Other wildfile procedures I have, which do not create a new file exit OK.

>(Just a guess, I never used the input
>redirection until today.)
>
I don't use it a lot, but it is very handy.
I use ZTreeWin as my file manager, and use this to select files for processing, rather than typing at the vedit prompt.

 


Topic: Re: Wildfile - Automatic Exit (4 of 5), Read 25 times
Conf: Wildfile, Other macros
From: Ted Green
Date: Saturday, January 07, 2006 07:02 PM

At 05:28 PM 1/7/2006, you wrote:
>Yes. The only issue is that I am prompted to save the file.
>I am looking for a way to cause this to be automatically saved.

I suspect that the macro which you are running from within Wildfile is creating a file and therefore this macro needs to save it.

Ted.

 


Topic: Re: Wildfile - Automatic Exit (5 of 5), Read 26 times
Conf: Wildfile, Other macros
From: Ian Binnie
Date: Sunday, January 08, 2006 02:23 AM

On 1/7/2006 7:02:21 PM, Ted Green wrote:
>At 05:28 PM 1/7/2006, you
>wrote:
>>Yes. The only issue is that I am prompted to save the file.
>>I am looking for a way to cause this to be automatically saved.
>
>I suspect that the macro which
>you are running from within
>Wildfile is creating a file
>and therefore this macro needs
>to save it.
>
>Ted.
>
The macro Opens/Creates a file & appends to it for each file processed.

I could force this to be saved for each execution, but was looking at a way to close this at the end of a cycle (which is how I use the macro when running manually).
>