Re: Hard Drive logging and Disk Copy
Re: Hard Drive logging and Disk Copy
- Subject: Re: Hard Drive logging and Disk Copy
- From: Pier Kuipers <email@hidden>
- Date: Sun, 5 May 2002 23:26:32 +0100
Mike,
Interesting, and not dissimilar to something I'm exploring myself. In
my case, I'm trying to create a Filemaker Pro browser of the contents
of a file server.
First, you'd have to create an index of the entire hard disk, as you
suggest. IMHO, that would be too large a project for Applescript
alone. You could of course write a script that loops through every
folder of the HD and writes the path to a file, but it would take
forever. Instead, I intend to use Retrospect to create the initial
index by performing a complete backup. The resulting storage set can
easily be imported into something like FMPro.
Next, you'd have to keep track of new or modidified files. In your
case, it may not be necessary to have the initial index, because all
you need to index is what's new or modified, and you may ignore
existing files and folders.
In pre-OS X, I would use the FindFile Scripting Addition to search
your Hard Disk for new files, something like
set theDate to ((current date) - 86400)
FindFile in_folder "Hard Disk Name:" date_created_is_after theDate
with subfolders
This will give you an alias list of all files created in the last 24
hours (86400 seconds). You'll notice that it's not exactly fast, but
it works.
Hope this helps you with part one...
Pier.
At 15:28 -0400 03/05/02, Perbix, Michael wrote:
>
I am starting on a project to learn a little bit about Applescript
>
for a little project of mine. What I want to do it have a script
>
that inventories my HD, then I install some software, then
>
re-inventory. I should then be able to compare the two and create a
>
list of differences including paths and such.
>
>
That is part one.
>
>
Part two is to have Diskcopy create a blank read/write image file,
>
and copy all the changed files into it in the proper directory
>
structure for the purpose of re-installing at a later time, I then
>
want to image to be a compressed read-only. I have not yet looked
>
at the dictionary for Disk Copy.
>
>
This can be on OSX or OS 9.2.2- Also can this be done stock, or will
>
I need some scripting additions?
>
>
There is a program out there that does this, but as great as it is,
>
I am having mixed success with it.
>
>
Is this even possible with Applescript, or is it too much for me to
>
attempt? I am just putting the feelers out so you can communicate
>
with my off-list if you like.
>
>
Thanks.
>
>
-Mike
>
_______________________________________________
>
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.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com
_______________________________________________
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.