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
set the clipboard to «class ktxt» of ((the clipboard as text) as record) | |
set theUrl to (the clipboard) | |
open location theUrl |
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
tell application "iTunes" | |
if selection is not {} then | |
set allTracks to selection | |
repeat with this_track in allTracks | |
set the file_to_delete to (get location of this_track) | |
set thisOne to this_track | |
delete (some track of library playlist 1 whose database ID is (get database ID of thisOne)) | |
tell application "Finder" to delete the file_to_delete | |
end repeat | |
end if |
NewerOlder