I want to burn a .img file of Wheezy OS to my 8GB SD Card from Mac OS X but can't figure out how.

Any help would be appreciated.
['https://raspberrypi.stackexchange.com/questions/4144', 'https://raspberrypi.stackexchange.com', 'https://raspberrypi.stackexchange.com/users/-1/']
I made a script to burn .img or .iso files to SD card or USB. 

[Github > burn.sh](https://github.com/jmcerrejon/scripts/blob/master/burn.sh)
Use `df` to find the device path, in this case `/dev/disk2`.

```
$ df -h

Filesystem      Size   Used  Avail Capacity   iused    ifree %iused  Mounted on
/dev/disk1     465Gi  414Gi   51Gi    90% 108573777 13263821   89%   /
devfs          214Ki  214Ki    0Bi   100%       741        0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%         0        0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%         0        0  100%   /home
/dev/disk2s1   3.7Gi  2.3Mi  3.7Gi     1%         0        0  100%   /Volumes/UNTITLED

```