Joining slightly dissimilar files
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
|
_______________________________________________
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