V
V
vitom2012-09-24 14:36:48
macOS
vitom, 2012-09-24 14:36:48

How to delete the current song in iTunes from the keyboard?

This is the second time my attempt to find the answer in Google has failed. The only thing I have achieved is to make a service in the automator that receives, when the desired key combination is pressed, a song from iTunes and moves it to the trash. But the song goes on. And when you empty the trash, a dead track remains in iTunes. There are ways to clear these tracks, but one is Doug's Script (paid), and the others with playlists do not suit me.

Ideas?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
spayeler, 2012-09-24
@vitom

tell application "iTunes"
  copy (get location of current track) to mLocation
  ignoring application responses
    delete current track
  end ignoring
end tell
tell application "Finder"
  move mLocation to trash
end tell

D
d43, 2012-09-24
@d43

Try also adding a rule to AppleScript in Automator:
tell application "iTunes"
set currentTrack to current track
reveal currentTrack
delete currentTrack
end tell

M
Maxim Shishkin, 2012-09-24
@lsoul

The more I communicate with iTunes, the more often it seems to me that most of the similar questions have an answer - no way)

V
vitom, 2012-09-24
@vitom

Thanks a lot! I knew that there is a way out =)
You need to learn applescript, a useful thing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question