Page 1 of 1
tws file format?
Posted: Tue Feb 10, 2004 10:31 pm
by cullepm3
I would like to export workspaces to a human readable file format. This would be useful for things like zipping all the files in a workspace.
Does anybody know the format for tws files?
Thanks,
Pat
Posted: Wed Feb 11, 2004 3:17 am
by CyberSlug
This might help:
1) Save a workspace file, then close all open files in textpad
2) File > Open, then go to the "file format" box and change it to "binary"
3) Then select the TWS file and open it
4) It seems TWS files contain a lot of non-readable characters
However, you can get a list of all the files open in a TextPad window with third-party tools. I'd recommend the free and easy-to-use scripting language
AutoIt.
Code: Select all
; AutoIt 3.0.92 sample script
$names = WinGetText ("TextPad - ")
MsgBox(4096,"File list:", $names)
Actually, this script returns file AND toolbar names, but it's pretty easy to manipulate the information. See the
AutoIt forum if you are interested or have any questions.
Posted: Wed Feb 11, 2004 4:06 am
by cullepm3
Thanks cyberslug, but i am really more interested in the format of the file itself, ie data structures that could be used to read the file with another program.
Posted: Wed Feb 11, 2004 12:54 pm
by ben_josephs
CyberSlug wrote:
you can get a list of all the files open in a TextPad window with third-party tools
This is a bit easier:
Edit | Copy Other | All File Names