Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| import os, time | |
| import os.path | |
| for path, dirs, files in os.walk('./'): | |
| dups = {} | |
| for x in files: | |
| name, ext = os.path.splitext(x) | |
| fullpath = path+'/'+x | |
| (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime) = os.stat(fullpath) | |
| if not name in dups: |
This file contains hidden or 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
| tell application "iTunes" | |
| set selectedTracks to selection | |
| repeat with i from 1 to (length of selectedTracks) | |
| if class of item i of selectedTracks is not shared track then | |
| tell item i of selectedTracks to set {loc} to {get location} | |
| if loc is missing value then | |
| tell application "iTunes" | |
| delete item i of selectedTracks | |
| end tell | |
| end if |
NewerOlder