Save this as dmg2iso and run from the terminal:
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: ${0##*/} <file>"
exit 1
fi
file=${1%.dmg}
hdiutil makehybrid ${file}.dmg -o $file
if [ -z "$1" ]; then
echo "Usage: ${0##*/} <file>"
exit 1
fi
file=${1%.dmg}
hdiutil makehybrid ${file}.dmg -o $file
Like this post? You might also like Coalmine, my centralized error tracking service for your apps. Coalmine captures errors and all kinds of helpful debugging information, notifies you, and makes it all searchable. Check it out!