Mac OS X 10.2 的反安装
想要反安装MacOSX吗?有人提供这一个AppleScript!不过在使用之前一定要备份好重要文件
tellapplication"Finder"
activate
try
setthis_versiontotheversionasstring
ifthis_versiondoesnotstartwith"9"or
this_versionisnotgreaterthanorequalto"9.1"then
error"ThisscriptrequiresaMacOS9.xsystemgreaterthan9.0.4."
displaydialog"ThisscriptwillmoveMacOSXitemsfromthestartupdisktothetrash."withicon2
displaydialog"ShouldthisscriptdeletetheUsersfolder?"buttons{"Cancel","Yes","No"}defaultbutton3
settheusers_flagtothebuttonreturnedoftheresult
repeatwithifrom1tothecountoftheroot_items
setthis_itemtoitemioftheroot_items
ifthis_itemisnot"Users"or
theusers_flagis"Yes"then
ifexists(itemthis_itemofthestartupdisk)then
deleteitemthis_itemofthestartupdisk
endif
endif
endrepeat
repeatwithifrom1tothecountofthesystemfolder_items
setthis_itemtoitemiofthesystemfolder_items
ifexists(itemthis_itemofthesystemfolder)then
deleteitemthis_itemofthesystemfolder
endif
endrepeat
beep
displaydialog"TheMacOSXitemshavebeenplacedintheTrash."
onerrorerror_messagenumbererror_number
iftheerror_numberisnot-128then
beep
displaydialogerror_messagebuttons{"Cancel"}defaultbutton1
endif
endtry
endtell
(※本文搜集自:重庆未来科技 http://www.wlkj.net 重庆IBM笔记本电脑、重庆IBM水货笔记本电脑、重庆苹果笔记本电脑、重庆IBM服务器专卖)