ParticleCreation per script

Hi all,

I have a tree with leaves. I select a certain amount of the leaves. Now I want to create for every selected leave a particle at that position then link or parent the appropriate leave to that particle.

Anyone an idea how to script this?

thanx

nico