Sample Rule 6
Description
This rule will count the number of words entered in the item text updating it when you have completed the typing.
Rule
++:L: wc=0.
for w in string.gmatch(get_item_text(item_id),"%a+") do
wc=wc+1
end
set_folder_value("comments",item_id,wc)
Credit
based on the work of Larry Yudelson in
Sample Program 2