• 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: Finding differences in 2 folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding differences in 2 folders


  • Subject: Re: Finding differences in 2 folders
  • From: AppleScript Guru <email@hidden>
  • Date: Sat, 06 Oct 2001 00:05:43 -0400

on 10/5/01 9:52 AM, you said:

> Does anyone know of a script that will take 2 folders and display the names
> of the unique files in each?

Try this...

set folder1 to (choose folder) as string
set folder2 to (choose folder) as string

set folder1List to list folder folder1 without invisibles
set folder2list to list folder folder2 without invisibles

set folder1UniqueList to {}
set folder2UniqueList to {}

repeat with a from 1 to (count folder1List)
set cFolderItem to item a of folder1List
if folder2list does not contain cFolderItem then set end of
folder1UniqueList to cFolderItem
end repeat

repeat with a from 1 to (count folder2list)
set cFolderItem to item a of folder2list
if folder1List does not contain cFolderItem then set end of
folder2UniqueList to cFolderItem
end repeat

{folder1UniqueList, folder2UniqueList}



-Ben

Benjamin S. Waldie
Write Track Media
(AppleScript GuRu)

AppleScript Web Site:
http://www.AppleScriptGuru.com
http://www.wtmedia.com


  • Follow-Ups:
    • Re: Finding differences in 2 folders
      • From: Ian Hewitt <email@hidden>
References: 
 >Finding differences in 2 folders (From: Ian Hewitt <email@hidden>)

  • Prev by Date: Re: Applescript Studio Announced Today
  • Next by Date: Are the Help/Guidebooks accessible in Smile?
  • Previous by thread: Re: Finding differences in 2 folders
  • Next by thread: Re: Finding differences in 2 folders
  • Index(es):
    • Date
    • Thread