Any scripted way to extract Album and Artist from the Path field?

Far from it.
See the FAQs/HowTos