You can use it as is and only employ the data you need, or use it as a basis for writing your own script.

As Lonk mentioned, there are many inventory script fragments here that you can modify or build into your own tool.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D