Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Lists next 5 songs on desktop...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Lists next 5 songs on desktop...
Authored by: macmath on Jul 09, '04 02:36:52PM

This applescript is an obvious rip-off of the original poster's script, with none of the improvements of the posters above, but used instead of the original authors applescript, it lists the previous song, current song, and the next 4 songs (each with the name of the artist).
[code]
tell application "iTunes"
set foo5 to name of track 5 of playlist 2
set foo5a to artist of track 5 of playlist 2
set foo6 to name of track 6 of playlist 2
set foo6a to artist of track 6 of playlist 2
set foo7 to name of track 7 of playlist 2
set foo7a to artist of track 7 of playlist 2
set foo8 to name of track 8 of playlist 2
set foo8a to artist of track 8 of playlist 2
set foo9 to name of track 9 of playlist 2
set foo9a to artist of track 9 of playlist 2
set foo10 to name of track 10 of playlist 2
set foo10a to artist of track 10 of playlist 2
set foo7 to foo5 & " by " & foo5a & "
" & foo6 & " by " & foo6a & "
" & foo7 & " by " & foo7a & "
" & foo8 & " by " & foo8a & "
" & foo9 & " by " & foo9a & "
" & foo10 & " by " & foo10a
end tell
[/code]

By the way, in writing this, I found out that AppleScript, like Perl considers '\n' to be a command to start a new line.



[ Reply to This | # ]
...for playlist 2.
Authored by: macmath on Jul 09, '04 02:39:19PM

I don't know why the code tags didn't work...

This uses the 2nd playlist, obviously, which for me is the 'Party Shuffle'.



[ Reply to This | # ]