Here how to retrieve attribute set by name instead of id
$name = "Default" $attribute_set = Mage::getModel("eav/entity_attribute_set")->getCollection(); $set = $attribute_set->addFieldToFilter("attribute_set_name", $name)->getFirstItem(); echo "id: ".$set->getAttributeSetId();