If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
For .dmg and other disk images I think there is no other way to see their contents than to mount them before. A shell script could mount and unmount them on the fly with hdiutil.
For .zip files there is for example "unzip -l <zipfile>", for other archive formats there are commandline tools with list options as well.
For .sit there's nothing I know of than Aladdin's GUI tools.