Poner en cola una canción en la sesión aleatoria de iTunes

Poner en cola una canción en la sesión aleatoria de iTunes
Facebook Twitter Flipboard E-mail

Una de las funcionalidades que ofrece Winamp para Windows es la de poder poner en cola las canciones en una sesión aleatoria pulsando la tecla Q. Con este Applescript que os presentan en macosxhints podréis conseguir lo mismo, incluso poner en cola canciones de vuestro iPod, tan sólo tendréis que copiar el siguiente código en el Editor de Scripts para luego guardarlo y asignarle un Trigger en Quicksilver.

En el continuar leyendo, el applescript completo.

tell application "iTunes" set currentSource to container of view of front browser window if not (exists playlist " Queue" of currentSource) then set queuePlaylist to (make new user playlist ¬ with properties {name:" Queue", shuffle:false} at currentSource) else set queuePlaylist to playlist " Queue" of currentSource end if set curtrack to {} if player state is not stopped then if current playlist is not queuePlaylist then delete tracks of queuePlaylist set curtrack to (duplicate current track to queuePlaylist) end if else delete tracks of queuePlaylist end if if selection is not {} then set sel to a reference to selection duplicate sel to queuePlaylist end if if curtrack is not {} then set playPosition to player position set curState to player state play curtrack set player position to playPosition if curState is paused then pause else if tracks of queuePlaylist is not {} and (player state is stopped or current playlist is not queuePlaylist) then play first track of queuePlaylist end if end tell

Vía | macosxhints

Comentarios cerrados
Inicio