Notepad can't...interpret the code parts of a stack?
Alex Tweedly
alex at tweedly.net
Sat Feb 5 09:17:22 EST 2005
Erik Hansen wrote:
>--- Alex Tweedly <alex at tweedly.net> wrote:
>
>
>>...use a basic text editor and just copy the
>>script code out and paste into a new stack.
>>(Notepad can't do it, but Emacs has no problem
>>finding and sensibly
>>interpreting the code parts of a stack).
>>
>>
>
>this sounds ominous,
>could you please elaborate?
>
>
Sure - but remember - this started out as ".... if you're desperate
enough to need a bad idea ...."
If you have a stack file that you just can't get into (and of course
assuming it's not encrypted, compressed, locked, ....) then you can open
it with any text editor that can handle "basic ascii text" and can avoid
becoming confused by interspersed bits of binary code. Then you can copy
the relevant parts of the script, and paste them into a newly
constructed stack.
Tedious - but when you're desperate ...
I've used Emacs on Windows (Paul said Notepad can do it too) to do this
when I had a stack that got badly corrupted (along with other things on
the same flash-disk - not a Rev problem).
I've also used Pythoncard's "findfiles" utility to do something similar
(some day I'll rewrite that into Rev - it's basically a gui front-end to
do a recursive file search with regex and a one button way to get into
the text editor at the right line). I found this a much faster way to
find examples of how to do things in Transcript than any of the tools /
docs that came with Runrev.
Hmmm - maybe I should do that now, to postpone tackling that hard
problem I'm stuck on for my real project ...
--
Alex Tweedly http://www.tweedly.net
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 03/02/2005
More information about the use-livecode
mailing list