Oops. Old problem...
Nonwithstanding the possible legal and definite moral considerations,
there's quite a simple (but work-intensive) way.
(Supposing that all your client's really want is to keep a copy of the
source 'safe')
1# Be sure to create every single line of code of a multi-movie project in
an external cast.
To gobble up the code:
2# Think of those variable and function names which are most central to the
project (you hardly ever end up with more than one hundred of them)
3# Create an empty movie, link all the casts to it.
4# Do an extensive find&replace operation on ALL your scripts, use
nondescript names for substitutes (No capitalization, just seemingly random
strings "vsjvsdo" etc.) Be sure to keep track of every replacement you make
to ensure that 4.1# you can ungobble the code if you really have to. 4.2#
you makse sure not to use the same dummy name twice. This could naturally be
automated with a miaw...
This leaves the problem of the comments.
Here is a VERY UNTESTED solution for the comments, use at your own risk!!
Searches all attached castlibs's members from 1 to 100 (increase number if
you like to) and removes starting from "--" to the end of that line.
<LINGO>
on removeComments
repeat with a = 1 to the number of castLibs
repeat with b = 1 to 100
if member(b,a).type = #script then
ScriptContents = member(b,a).scriptText
repeat with c = 1 to the number of lines of ScriptContents
ScriptLine = line c of ScriptContents
commentstart = offset(NumToChar(45)&NumToChar(45), ScriptLine)
if commentStart <> 0 then
delete char commentstart to(length(ScriptLine)) of line c of
ScriptContents
end if
end repeat
member(b,a).scriptText = ScriptContents
end if
end repeat
end repeat
put "done"
end
</LINGO>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Morgan Bonar
> Sent: 1. marraskuuta 2001 22:35
> To: Lingo-L@Penworks. Com
> Subject: <lingo-l> encoding lingo
>
>
> hey all,
> during a thread about releasing source lingo, someone mentioned that there
> was a utility that scrambles variable names so that your code could not
> easily be "borrowed" =). does anyone know what this utility is??
> TIA
>
> Morgan Bonar
> Chief Creative Officer
> p. 858.569.3400 ext.15
> f. 858.569.3410
> [EMAIL PROTECTED]
> http://www.webcardinc.com
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]