Was the file you were trying to attach open in MS Excel at the point in time you ran the script? If so, sometimes Excel locks the file such that other programs can't read it and they end up with a "file" with nothing in it.
It might not be your problem, but it's worth thinking about.
Cheers,
Brent