I've done something like this through events. If you mean a certain character can learn it, you just set up a common event and teach the skill to the person using change skills, and on the item make sure there is no target. When used, the person will learn the spell.
Or, if you mean what Dr_Lock mentioned, I believe only a script can do it.