Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Compact sparse disk images via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compact sparse disk images via the command line
Authored by: enthemic on Sep 23, '11 11:31:08AM

The will only work on unencrypted sparseimage files. If the sparse image file was created with a password hdiutil will error out reporting that it access is denied (because it expects a password to be entered via stdin and the workflow doesn't provide one.) Update the script as below to cause hdiutil to open up a GUI window to prompt for the password instead. This works with both encrypted and unencrypted spareimage files.

hdiutil compact "$@" </dev/null



[ Reply to This | # ]