Sends inventory contents to each named individual on a list, by trying to get their key from a series of databases. This would be so much easier if there was a name2key function. But there isn't.
To use this script: place it in a prim, along with some other items that you want to send to people, and a notecard called "Names" which has a list of avatar names to send items to, one per line without spaces before or after them. (Blank lines will be ignored; anything else, and the script will try to find the line as if it were a name, and fail, and tell you that it has failed.)
Then, touch to start sending. There will be a display of names left to check and estimated time remaining.
There is no way of determining whether an object has been successfully sent by script, or whether somebody was in busy mode (this is the usual culprit when people complain of not receiving an item - either that, or they did receive it but can't find it) or declined the item. My apologies.
Why not set up a web service to scrape the UUID off secondlife.com? It is a simple query for Ordinal Malprop to obtain this in the resulting string: http://world.secondlife.com/resident/ad87bbec-81d2-4806-afe4-bedea19ee4fc
I believe that that is what at least one of the web services I used does. It is true, though, that it would instructional to create such a system and then publish the necessary code, to illustrate how such things are written.
I have a script doing much the same, but as a last step, it does a reverse lookup in the dataserver, checking that the found key indeed matches the expected name in the Linden system. It is bordering on paranoid, but it ensures that there is no corruption or tampering with the 3rd party bases.