Hi,
try to use AkuaSweets scripting additions. It have several commands dealing with icons. Remember, you receives the icons data in the data form, not a picture form as when you copy an icon from the Finder and then look it by showing clipboard.
hope this help
Roberto