I want an addon/script that will automatically lock specific items that I hardcode i.e. task items for which there is a task quest and unlock task items for which there is not a task quest.

Enumerating and accessing items in the bags should not be a problem; the question is once I found a "sleek skin" and can I lock it in my bag.

TIA