tws file format?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
cullepm3
Posts: 2
Joined: Tue Feb 10, 2004 10:21 pm

tws file format?

Post 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
User avatar
CyberSlug
Posts: 120
Joined: Sat Oct 04, 2003 3:41 am

Post 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.
cullepm3
Posts: 2
Joined: Tue Feb 10, 2004 10:21 pm

Post 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.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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
Post Reply