Combine PDFs in different folders with same name


Joined
Sep 7, 2015
Messages
2
Reaction score
0
Hi all,

the following situation is given:
There are 2 folders, FP and OG. In OG there are pdf-files with names from 100-1100, of course not all numbers are taken. So, as example, lets say there is:

./
./OG
./OG/100.pdf
./OG/569.pdf

and in FP there is
./
./FP
./FP/100.pdf
./FP/101.pdf
./FP/102.pdf
./FP/569.pdf

now I want to combine those pdfs with the same name, looking "from" OG - so if there is no 101.pdf in OG/ nothing should happen to 101.pdf in ./FP/. The combined pdf shall be put somewhere else, lets say ./print/

I am not exactly sure in which direction I should head. How do I get the Input into Automator? I.E. how do I feed the dir-listing of OG into Automator so it can look it up in FP ? I assume if I wound that way, I will be able to tell automator that FP is supposed to be first and the OG-stuff is added to that - not the other way around.

I thought of using a "Folder-Action", so every pdf that comes into the OG folder will then be combined with <name>.pdf and copied to ./print/.
Problem is, I do not get how to get the Info from the file into automator, to lookup the other file in fp and so on ...

Thanks a lot for any tipps!

Cheers,
Sam

P.S. First usage of automator, but small programming-background is provided

 
Last edited:
Ad

Advertisements

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
8,750
Reaction score
334
Hello and welcome.

Unfortunately, I don't have much experience with Automator/AppleScript. I can suggest a forum that may be able to help you out:

MacScripter

Hopefully someone here with more experience will chime in, or the folks at MacScripter can help you out.

C
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top