Import 4 latest videos from iPad

Is there any way to achieve an automatic import of the lets say 4 latest videos from an iPad when it is connected to a Mac via KM and shell scripts or apple scripts?

All the best. Erik