• 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: produce list of differences between two folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: produce list of differences between two folders?


  • Subject: Re: produce list of differences between two folders?
  • From: Tim Mansour <email@hidden>
  • Date: Thu, 8 Apr 2004 22:26:57 +1000

I wrote a handler that does list comparison for strings, but am having trouble understanding how to get it to work with lists of file specs or aliases. My check of the archives hasn't struck pay dirt yet - can anyone give me a clue?

Why not just convert the file specs to strings first (perhaps create new lists to do this) then use your comparison routine?

Or, you could use the versatile "backup" command from the Satimage scripting addition to compare the folders. From the dictionary:

backup : synchronizes 2 folders.
backup file specification -- the source folder
onto file specification -- the destination folder
[level small integer] -- 0: report only, 1: synchronize folders, 2 : synchronize and report. Default 0.
[after date] -- files older than this date are not processed.
[recursively boolean] -- recursively synchronize subfolders. Default true.
Result : string -- the (optional) report

If you use a "level" of 0, you get a report of the differences between the two folders. Parse this report to do whatever you want with the files.

____________________________________
Tim Mansour <email@hidden>
Phone 02 9212 1789 Mobile 0405 500 846
_______________________________________________
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: Unicode and languages
  • Next by Date: Re: Unicode and languages
  • Previous by thread: Re: produce list of differences between two folders?
  • Next by thread: Switching keyboard layout in 10.3
  • Index(es):
    • Date
    • Thread