What do I have to do to emulate the “Send by email” facility of Codea which concatenates a project’s files into a single file? My situation is that I have the files on my computer and would like to create a “single file” version. I’d rather do it from the command line than have to go back into Codea and email it to myself.
So what’s the required formatting?
(I know I could reverse engineer the result, but there’s always the danger I’d miss something, and I think the information would be useful here.)
The format is a bit obscure, and I don’t recall exactly what it is — we serialize a Cocoa file wrapper for the directory. It’s not a format I like very much, but it was easy to read and write.
Okay, I didn’t explain myself well (actually, I think I explained myself incorrectly - sorry). I actually meant the single file format when you Copy a project. I forgot that when I did this, I then pasted it into an email and sent it to myself (even more tortuous) and just remembered emailing it to myself.
So, what’s the format when you Copy a project to the clipboard?
Ordering is whatever your custom buffer order is in Codea. Codea will arrange the tabs in the order specified in the file (this also allows you to run the file as a single-tab project).
Yes. The .codea file format was ugly, and I never figured it out 100% - I read it was a standard RTF Folder format, but was never able to find bit of off-the-shelf software other than Codea that could consume it. While I do wish we had the functionality (and we mostly do with this single file format), the actual .codea files themselves are welcome to lie in a shallow grave.
Hmm. I should modify the decodea pages to give you the one-cut-and-paste format above, in my copious free time. Sigh.