Hi all
I'm looking for a way to combine a number of PDF's into 1 Merged document from a folder via a txt list. I need the running order of the merged document follow the order to the list, rather than being in numerical order.
I currently have a script that moves PDFs from one folder to another based on a txt list, wondered if it could be adapted
"set path2source to choose folder with prompt "Select the source folder" default location (path to desktop)
set path2dest to choose folder with prompt "Select the destination folder" default location (path to desktop)
set path2list to choose file with prompt "Select your textList" of type {"txt"}
set theList to paragraphs of (read path2list)
tell application "Finder"
set theNames to name of files of path2source
repeat with aName in theNames
if (aName as text) is in theList then
move file aName of path2source to path2dest
end if
end repeat
end tell"
Can anyone offer some insight or help out, would be hugely appreciated
I'm looking for a way to combine a number of PDF's into 1 Merged document from a folder via a txt list. I need the running order of the merged document follow the order to the list, rather than being in numerical order.
I currently have a script that moves PDFs from one folder to another based on a txt list, wondered if it could be adapted
"set path2source to choose folder with prompt "Select the source folder" default location (path to desktop)
set path2dest to choose folder with prompt "Select the destination folder" default location (path to desktop)
set path2list to choose file with prompt "Select your textList" of type {"txt"}
set theList to paragraphs of (read path2list)
tell application "Finder"
set theNames to name of files of path2source
repeat with aName in theNames
if (aName as text) is in theList then
move file aName of path2source to path2dest
end if
end repeat
end tell"
Can anyone offer some insight or help out, would be hugely appreciated