I have custom attribute 'brand'. I should set its value in attribute 'manufacturer'. How can i do this? For now, all that i cat do -> shell file
require_once dirname(__FILE__) . '/../app/Mage.php';
Mage::app('admin');
$product = Mage::getModel('catalog/product')->getCollection()->addAttributeToFilter('manufacturer', Null);
$avid = $product->getResource()->getAttribute('brand');
$product->setData('manufacturer', $avid)->save();
There the mistake or maybe it is fundamentally wrong? And it must be replaced in all products