converting a standalone back to a stack?
FlexibleLearning at aol.com
FlexibleLearning at aol.com
Wed Feb 15 15:08:39 EST 2006
>From The Scripter's Scrapbook (note not yet tested with 2.7 so use at own
risk on a backup copy)...
App2Stack Recovery
This will convert a MetaCard or Revolution standAlone to the original stack
file.
on mouseUp
answer file "Select a Standalone..."
if it is "cancel" or it = "" then exit to top
put url ("binfile:"&it) into tStack
repeat forever
-- there's more than one stackfile in there which is interesting
put offset("#!/bin/sh",char 10 to -1 of tStack) into tOff
if tOff = 0 then exit repeat
put char tOff+9 to -1 of tStack into tStack
end repeat
ask file "Name the Stack..."
if it is "cancel" or it = "" then exit to top
set the fileType to "RevoRSTK"
put tStack into url ("binfile:"&it)
answer "Conversion finished" with "OK"
end mouseUp
HTH
/H
More information about the use-livecode
mailing list