Re: OSX-Filesystem Snapshot?
Re: OSX-Filesystem Snapshot?
- Subject: Re: OSX-Filesystem Snapshot?
- From: bill <email@hidden>
- Date: Thu, 23 May 2002 19:05:47 +0800
Charles,
>
Does anyone know or have a sample script that will scan a OSX volume and
create a snapshot?
Try this one line code:
do shell script "cd / ; sudo find . > ~/Desktop/snapshot" with administrator
privileges
Briefly, change the working directory to root, the find command will list
everything in the current working directory, send the standard output to a
text file named "snapshot2 on your desktop. Using sudo to avoid permission
denied by some invisible directory, otherwise, some files will be missing.
Bill :)
_______________________________________________
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.