![]() ![]() Set RawScript to RawScript & "'" & filepath1POSIX & "/" & thefile & "'" & space Set fullpath to "'" & filepath1POSIX & "/" & thefile & "'" & space Set RawScript to "joinPDF " & "'" & destpath & "'" & space Set files_to_process to name of every file of the sourcefolder whose name contains search_string Set destpath to startpathPOSIX & search_string & "-" & "combined.pdf" Set filepath1POSIX to POSIX path of filepath1 Set filepath1 to (path to desktop as string) & "Export_Objects:Downsample:Success" Set startpathPOSIX to POSIX path of startpath Set startpath to (path to desktop as string) & "Export_Objects:temp" as alias On Combine_PDFs(sourcefolder, search_string, CombinedPDFfolder) Repeat until Input_PDF_List as string does not contain search_stringĮlse if (Input_PDF_List as string) does not contain search_string then My Combine_PDFs(sourcefolder, search_string, CombinedPDFfolder)Įlse if (Input_PDF_List as string) contains search_string then Set Input_PDF_List to name of every file of inputfolder Set search_string to characters 1 thru 14 of item 1 of Success_PDF_List as string Set Success_PDF_List to name of every file of sourcefolder Set CombinedPDFfolder to folder "Export_Objects:Combined PDF" as alias ![]() Set inputfolder to folder "Export_Objects:Downsample:Input" as alias Set sourcefolder to folder "Export_Objects:Downsample:Success" as alias As pidge said the use of joinPDF means that you can use just applescript and do shell scripts to combine pdfs and it works really well! I was looking to do the same thing as you a while ago and recently revisited it, and with some help in direction from the legend StefanK I’ve got it work! The Combine_PDFs handler is the part that you should look to incorporate in your script as it uses the joinPDF function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |