Copying/Pasting Icon Using AppleScript

Ok, here’s what I need to do.

I have the majority of the script written already. And it all works fine, up until I get to the icon part. What the script does is erase a firewire drive, rename it, mount it, copy certain files/folders to it, and then, I want it to past a certain icon on to it.

I’ve downloaded osxutils and tried the seticon command in the terminal, but that appears to only work with files or folders, and not disks.

I’ve also tried scripting the GUI to open Get Info, click the icon button, copy it, etc.

Everytime I run it, it runs fine, up until the copy area. It’ll continually give me errors of:

System Events got an error: NSReceiverEvaluationScriptError: 4

If ANY of you know of any way to make this work or anything, please please PLEASE let me know. This is a project for work, and we need it relatively soon. It’s all fine except for the icon part.

Thanks in advance!

jason