Re: How to generate a file difference report?
Re: How to generate a file difference report?
- Subject: Re: How to generate a file difference report?
- From: Ron <email@hidden>
- Date: Wed, 26 Dec 2007 17:35:51 -0600
choose file
tell application "Finder"
set selected_file to result
set the_size to ((size of (get info for selected_file)) as integer)
set the_name to (name of (get info for selected_file))
end tell
(*
+++ value available in addition to name and size +++
name:
creation date:
modification date:
size:
folder:
alias:
package folder:
visible:
extension hidden:
name extension:
displayed name:
default application:
kind:
file type:
file creator:
type identifier:
locked:
busy status:
short version:
long version:
*)
On 12/24/07, Patrik B. <email@hidden> wrote:
Hi,
I am looking for a library or script that compares differences in
images
based on filenames as the stable datum, then modification date and
filesize.
Specifically I often get images for a pjt earlier and then later a
revised
set with all images again (whether revised or not). Instead of
manually
comparing files or just blindly overwriting I thought applescript
can do
this faster and tell me which ones are actually revised or new. I
then can
hand this data to a third script that I am writing that will just
copy the
files that I really need or rename the revised ones accordingly.
In deatail I am now looking for something that will based on file
names
compare two folders with images each and then give me back the ones
that are
different in a list of names followed by the difference. The
differences I
am looking for are 1) differences in modification date and or 2)
differences
in filesize. 3) files that are not contained in both folders so are
either
totally new or were renamed.
As I started to write the code for this I thought there might be
already a
library on this or script. Any ideas where I can find something
like this so
I don't have to start from scratch? The main part I am looking for is
the "comparision" part of the script.
Thanks! Patrik
PS: Merry Xmas!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden