a file on my desktop with the ".com" extension.
That's a Window's executable file you "accidentally" downloaded. If you were on Windows, it would have been executed and bad things would've probably happened.
Macs can't execute Windows file without special software.
One day, you may "accidentally" click a link in AIM and a Mac executable file will download. Be careful.