Scipt that mimics particle instancer

I need some help writing a script that has a similar functionality to the particle instrancer. Basically, I'd like to place selected geometry, one piece or several pieces, at each particle of a particle object. I'd like the script to create copies of the selected geometry, that I can then re-position individually as needed ( this is why the particle instancer doesn't work for me ). My script writing experience goes as far as custom attribute expressions on particle objects. Any assistance will be greatly appreciated. Thank you in advanced...

Its just occured to me that I don't necessarily need the geo to be placed at each particles' world position; It could also be at each position of the cv's on a plane...

hi,
// this gives you all the ID's of particles in your particles1
string $allIDs[] = getAttr particles1.particleId;
// print $allIDs ;

for ($i = 1 ; $i < size($allIDs ; $i++)
{
// this loops thru every single particle and get its position
float $partclPos[3] = `getParticleAttr -at position -array true particleShape1.pt[$allIDs[$i]]` ;

// create a cone for each particle and move it to the right position,
//rename the cone so that the number represents the particle it follows
move -a $partclPos[0] $partclPos[1] $partclPos[2] cone -n ("myCone\_"+$allIDs[$i]) ;

// clear the array befor you iterate
clear $partclPos ;
}

HIH
s.

p.s.: you could put that into an expression also (in slightly altered form changing the "create cone"-bit to a just the name comound ("coneName_"+$particleID), thus animating the cone wherever the particle goes.