Speaking in a video broadcast on Iranian state television, his first appearance since June 19, Khamenei said any attack on Iran would come ?great cost?.