I asked a question here about this just over a week ago, but it took a little while to edit the post to include some code.
The original post and code can be seen here
I am able to create an Attribute Set based upon Default, create the Product Attribute and add this to the Product Details Group when either installing or upgrading a module.
My problem however is that Product Attribute is added to ALL attribute sets and not just the new attribute set that was created. Looking in the MySQL tables I can see that my new Product Attribute is indeed linked to every Attribute Set.
Does anyone know how to stop the Product Attribute being added to all of the Attribute Sets EXCEPT the one that has just been created? From what I have read, this should happen from using the 'attribute_set_id' while creating the Product Attribute, but this has not worked?