Mar 29, '07 07:30:03AM • Contributed by: Anonymous
The following Automator workflow will simplify compacting a sparse disk image. You need to occasionally compact sparse disk images, because while they will grow automatically as you add files, they won't shrink when you delete files. Open Automator in Applications Folder, and create this workflow:
- Finder Library » Get Specified Finder Items Action
- Finder Library » Filter Finder Items, and select Name Extension is equal to sparseimage.
- Automator Library » Run Shell Script and select Pass input as arguments and replace the sample script with hdiutil compact $@.
