• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSX-Filesystem Snapshot?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Beginner here
  • Next by Date: File containing non-English characters
  • Previous by thread: Re: OSX-Filesystem Snapshot?
  • Next by thread: Cool trick
  • Index(es):
    • Date
    • Thread