• 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
Joining slightly dissimilar files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Joining slightly dissimilar files


  • Subject: Joining slightly dissimilar files
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 13 Dec 2007 05:32:13 +1100

HI scripters,

I have another  job for a school in which I have to join together any two pdf files which have the first 18 characters of their name the same.  The last 4 characters will be dissimilar.  I have made the part of the script that joins them, but I need to alter the following script to include files that do not have the same name:

tell application "Finder"
set the year_10_source_folder to name of (every file of entire contents of (choose folder with prompt "Pick your folder with year 10 reports."))
end tell
my find_duplicates(year_10_source_folder)

on find_duplicates(year_10_source_folder)
tell application "Finder"
set the vce_source_folder to name of (every file of entire contents of (choose folder with prompt "Pick your folder with VCE reports."))
end tell
set return_list to {}
repeat with an_item in vce_source_folder
if year_10_source_folder contains an_item then set end of return_list to (contents of an_item)


end repeat
return return_list
end find_duplicates


"For every complex problem, there is a solution
that is simple, neat and wrong."   -H.L.Mencken


Peter Baxter
email@hidden



 _______________________________________________
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

  • Follow-Ups:
    • Re: Joining slightly dissimilar files
      • From: Kurt Klamp <email@hidden>
  • Prev by Date: Re: dev tools
  • Next by Date: Re: Joining slightly dissimilar files
  • Previous by thread: How to find the invoking event (the "current" event)
  • Next by thread: Re: Joining slightly dissimilar files
  • Index(es):
    • Date
    • Thread