Skip to content

Instantly share code, notes, and snippets.

@CarlQLange
Created November 27, 2011 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CarlQLange/1398137 to your computer and use it in GitHub Desktop.
Save CarlQLange/1398137 to your computer and use it in GitHub Desktop.
Open all mp3s in all subfolders of ./muzak
import os;
for subdir, dirs, files in os.walk('./muzak'):
for file in files:
if (file[-4:] == '.mp3'):
os.system('open ".' + subdir[1:] + '/' + file + '"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment