I am using MAC OSX 10.8 Mountain Lion.
I am preparing a Shell Script to launch 3 dmg files one by one.
I want to launch the dmg file each one after the another dmg has been installed.
I am using the wait function in script, but it is waiting till one dmg has been closed.
Please suggest any solutions.
here's a way you can open dmg files, copy the app and unmount the volume, for each volume:
for f in *.dmg: do
VOLUME=$(hdiutil attach "$f" | tail -1 | awk '{print $3}')
cp -r "$VOLUME/"*.app /Applications/
diskutil unmount "$VOLUME"
done
to be ran in the directory of the dmg files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With