• 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: Labelling identically-named files in two Finder folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Labelling identically-named files in two Finder folders


  • Subject: Re: Labelling identically-named files in two Finder folders
  • From: has <email@hidden>
  • Date: Mon, 31 Jan 2005 19:05:04 +0000

peter boardman wrote:

I want to compare two folders and label any files that appeared in both (names the same, not bothered about comparing anything else).

This should work:

tell application "Finder"
set folder1 to folder "Path:To:First:Folder"
set folder2 to folder "Path:To:Second:Folder"
set label of every file of folder1 whose name is in (get name of every file of folder2) to 5
set label of every file of folder2 whose name is in (get name of every file of folder1) to 5
end tell


has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Labelling identically-named files in two Finder folders
      • From: Christopher Nebel <email@hidden>
    • Re: Labelling identically-named files in two Finder folders
      • From: peter boardman <email@hidden>
  • Prev by Date: Apple Mail help sought
  • Next by Date: Scripted Save in Script Editor
  • Previous by thread: Labelling identically-named files in two Finder folders
  • Next by thread: Re: Labelling identically-named files in two Finder folders
  • Index(es):
    • Date
    • Thread