Request: Save script text to file from command line
It would really be nice if it was possible to save the script file as a text file (just as the menu item "File - Save Script Text to file...") from the command line. It could the be used for a custom compare script for TortoiseSVN so you can have a look at what changed in the script over time.
It is possible to have TortoiseSVN call a special scrip for specific fileextentions. So I was thinking of making a custom script that would extract a text only version of the current script file for a particular revision and have that compared with another. That would also be usefull with beyond compare or the combination of these. But there does not seems to be a option for that in the Command Line Options list in the help file. Are there a hidden funktion that could be used here? Or could I/we have a standalone application that could extract the text version?
Re: Request: Save script text to file from command line
Anyone from Lindersoft who has a view on this one?
Re: Request: Save script text to file from command line
Allan,
We'll add a new command line switch to handle this scanario. It will be available in the next maintenance build.
Friedrich
Re: Request: Save script text to file from command line
Re: Request: Save script text to file from command line
Hi Friedrich
I've just checked build 10.0.5204 and the help file does not include this switch. Did it not get into the help file, or has it not made it to the build?
Re: Request: Save script text to file from command line
Hi Allan,
Unfortunately, it did not work as expected and we had to disable the new switch one day before the release. But it's fixed now and will definitely be available in the upcoming new build.
Sorry for the delay :(
Friedrich
Re: Request: Save script text to file from command line
Hi Friederich.
Just upgraded to the latest build today but I don't see the fix. Can you help me show how to do this?
Allan
Re: Request: Save script text to file from command line
Hi Allan,
The command line option is:
SB10.EXE /SAT "C:\Development\Sample.sbp"
where:
SB10.EXE is the path to the SetupBuilder 10 executable
/SAT is the "save as text" switch
"C:\Development\Sample.sbp" is the path to the project file you want to save as ASCII text.
The command line supports a /F filename switch to set the text file name.
For example: SB10.EXE /SAT "C:\Development\Sample.sbp" /F "C:\MyTxt\test.txt"
If you do not set the /F argument then it will save Sample.sbp as Sample.txt.
For example: SB10.EXE /SAT "C:\Development\Sample.sbp" will be saved as "C:\Development\Sample.txt"
The only <g> problem is that this switch is not officially available in #5368. Am I allowed to send you a new SB10.EXE (build #5369) which is exactly the same as #5368 but supports the new switch?
Friedrich
Re: Request: Save script text to file from command line
Awesome! And YES that would be great :)
Allan
Re: Request: Save script text to file from command line
Hi Allan,
New SB10.EXE with /SAT switch support sent. Does this work for you?
Friedrich