programmatic conversion of .txt to .cida (scrap container)

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
amontillo
New Member
Posts: 7
Joined: 2007 Mar 23, 21:47

programmatic conversion of .txt to .cida (scrap container)

Post by amontillo »

Say I have several text files (.txt) with each one containing a few pathnames, one per line.

Is there a way to programmatically create one scrap (.cida) container for each .txt file?
I see that I can copy to the clipboard and import it via Actions | Import clipboard but was hoping for a way to convert the .txt's to .cida without manual typing.

I suppose I could record a macro to select the gui, but this seems rather messy – is there a better, cleaner way?
User avatar
snakebyte
Gold Member
Gold Member
Posts: 430
Joined: 2003 May 07, 07:14
Location: Seattle
Contact:

Post by snakebyte »

I think that you can use CIDA Structure to read or write .cida file.
http://msdn.microsoft.com/en-us/library ... S.85).aspx

Apart from filenames .cida files also contains scrap settings. I think Nikos should share the exact .cida file format details so that external tools could be written around it.
Help! I'm an AI running around in someone's universe simulator.
BRX
Silver Member
Silver Member
Posts: 304
Joined: 2002 Feb 08, 12:12

Post by BRX »

If anybody can come up with a procedure or helper application for this I'd be very interested, too..
cprichard
Member
Member
Posts: 41
Joined: 2008 Aug 07, 00:06
Location: Calgary, Alberta
Contact:

Post by cprichard »

Count me in on this one too!

Craig Prichard
Technical Communicator
craig.prichard@gmail.com
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

a cida file is just a CIDA dumped on disk. It's not something that can be used by the casual user, only a programmer
BRX
Silver Member
Silver Member
Posts: 304
Joined: 2002 Feb 08, 12:12

Post by BRX »

Well, I guess I have to stick to the clipboard trick then.

FYI, you can kind of "convert" textfiles to cida and back using the import from clipboard function and/or copying the paths from the scrap pane and pasting it in a text file.
Post Reply