Get a handler from a script

J. Landman Gay jacque at
Tue Mar 21 14:24:50 EST 2006

Dick Kriesel wrote:
> On 3/20/06 9:30 PM, "Mark Wieder" <mwieder at> wrote:
>>>>The best solution I've come up with for removing block comments is
>>>>put the script of SomeObject into tScript
>>>>put token 1 to -1 of tScript into tScript
>>>This sounded really cool, but I can't get it to work. :(
>>Really? What isn't it doing? For me it removes all comments that are
>>outside handlers (which is where my block comments are)...
> That technique appears to me to work for block comments and line comments
> that appear in the script either before the first compilable code or after
> the last compilable code.  But it overlooks block and line comments that are
> interspersed within the compilable code, and undelimited comments outside
> handlers.

That was it. I had put a block comment in the middle of the script.

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list