CODE
tell application "Finder"
display alert "Unmounting extra volumes, please wait." as informational buttons "OK" giving up after 2
end tell
tell application "Terminal"
activate
set HardwareType to do shell script "uname -p"
if HardwareType is "i386" then
do script "diskutil unmount \"/Volumes/Intel Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Firewire\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Media Files\"" in ¬
window frontmost
end if
if HardwareType is "PPC" then
do script "diskutil unmount \"/Volumes/Intel Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Intel Firewire\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Media Files\"" in ¬
window frontmost
end if
delay 3
quit
end tell
tell application "Finder"
display alert "System is now ready." as informational buttons "OK" giving up after 2
end tell
display alert "Unmounting extra volumes, please wait." as informational buttons "OK" giving up after 2
end tell
tell application "Terminal"
activate
set HardwareType to do shell script "uname -p"
if HardwareType is "i386" then
do script "diskutil unmount \"/Volumes/Intel Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Firewire\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Media Files\"" in ¬
window frontmost
end if
if HardwareType is "PPC" then
do script "diskutil unmount \"/Volumes/Intel Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/PowerPC Install\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Intel Firewire\"" in ¬
window frontmost
delay 1
do script "diskutil unmount \"/Volumes/Media Files\"" in ¬
window frontmost
end if
delay 3
quit
end tell
tell application "Finder"
display alert "System is now ready." as informational buttons "OK" giving up after 2
end tell