Created
February 5, 2009 09:02
-
-
Save ykzts/58620 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
from glob import glob | |
from os import path | |
from random import shuffle | |
def main(): | |
files = glob(path.expanduser('~/Music/iTunes/iTunes Music/*/*/*.m4a')) | |
shuffle(files) | |
for f in files: | |
print(f) | |
os.system('mplayer "{0}"'.format(f)) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment