|
|
Some comments
It works real nice. One thing though: The song must be playing or must have been playing (the loudspeaker icon has to be there), only selecting it is not sufficient. It takes the song currently playing or which played last, i.e. the one with the loudspeaker icon.
Some comments
To get the single selected track:
set theTrack to (item 1 of selection)
Also, it might be good to check for a current track first, then see if there's a selection
tell application "iTunes"
if player state is playing then
set theTrack to current track
else if selection is not {} then
set theTrack to (item 1 of selection)
end if
end tell
Cheers,
Doug Doug's AppleScripts for iTunes ---
Get the lyrics even if iTunes not playing the track.
An easy script modification makes it work even if the selected track is not currently playing. Add two "playpause" commands right after the tell command to iTunes, as in-- tell application "iTunes" --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|