Finding orphaned "put"

Mark Wieder mwieder at ahsoftware.net
Sat May 4 17:51:03 EDT 2013


william-

Saturday, May 4, 2013, 1:15:47 PM, you wrote:

> I have many lines of script which say "put something into variable"

> I have one line of script which just says "put variable" - what that does
> is open the message box. I'd like to find that line of script and delete
> it.

> Could I really put 6000 lines of script in a variable?

Yep. I occasionally need to put 11000 lines into a variable.
Anyway,

put theScript into tVariable
filter tVariable with "put*"
filter tVariable without "* into *"
filter tVariable without "* before *"
filter tVariable without "* after *"
if the number of lines in tVariable is 1 then
  find tVariable
end if

should get you close.

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list