I've made a patch that might be useful for others. In the attached
patch you can open a pd-file and the main window prints all the
abstractions or externals that you need to make the patch work. It
doesn't detect abstractions within abstractions though and it also
prints objects like [5] or [$1], I didn't find a solution for this
(small) problem yet. (I'd think it is bad pratice to use [5] in
sted of [5( or am I wrong?)
I wanted to make a patch that copied all the necessary abstractions
and the file itself to a new folder but I ended up with this
simpler solution...