simple script for combining pdf files

Hi there,
a little help needed for the following problem:
A rule in Hazel watches a folder, where subfolders with several pdf files are dropped in.
FOLDER_A
--- Subfolder "11111" with single pdf files
What I need now is a simple script to be used in this Hazel rule that does just two things:
1. Combine all of the single pdf files of one subfolder to one combined file (ordered by filename)
2a. name the combined file "combined.pdf" and save it in the same subfolder where the single files came from (here: "11111")
OR
2b. name the combined file with the specific subfolder name (here: "11111.pdf") and save it to the parent folder (here: "FOLDER_A")
Hope this is not to hard for someone who is familiar with scripting.
Unfortunately I am not at all.
Thanks a lot.
Greetings form Germany ...
Graf_Wetter
a little help needed for the following problem:
A rule in Hazel watches a folder, where subfolders with several pdf files are dropped in.
FOLDER_A
--- Subfolder "11111" with single pdf files
What I need now is a simple script to be used in this Hazel rule that does just two things:
1. Combine all of the single pdf files of one subfolder to one combined file (ordered by filename)
2a. name the combined file "combined.pdf" and save it in the same subfolder where the single files came from (here: "11111")
OR
2b. name the combined file with the specific subfolder name (here: "11111.pdf") and save it to the parent folder (here: "FOLDER_A")
Hope this is not to hard for someone who is familiar with scripting.
Unfortunately I am not at all.
Thanks a lot.
Greetings form Germany ...
Graf_Wetter