Re: Scripting Disk Utility in OS X
Re: Scripting Disk Utility in OS X
- Subject: Re: Scripting Disk Utility in OS X
- From: Rob Morton <email@hidden>
- Date: Mon, 21 Apr 2003 21:42:29 -0400
on 4/21/03 8:06 PM, Joel Belizario at email@hidden wrote:
>
Hi everyone,
>
>
I'm trying to figure out how to script Disk Utility is OS X to repair disks on
>
log-in, how do I do this? By the way, the record function in the Script Editor
>
doesn't seem to work for me..
You wouldn't. You can't repair a disk at login unless you mean repairing a
disk that you are not booted from. You can use diskutil for some things.
do shell script "diskutil repairPermissions /" with administrator privileges
This would ask for the admin password and then repair disk permissions. You
can use the same command to verify and repair a disk that you haven't booted
from.
Rob Morton
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.