iTunes: Is the current song shared?
iTunes: Is the current song shared?
- Subject: iTunes: Is the current song shared?
- From: Gil Dawson <email@hidden>
- Date: Sun, 25 Nov 2007 13:18:16 -0800
I'm working on an app to display lyrics, which have to be got
differently for shared songs.
How can I find out whether the current song is in a shared playlist?
This gives me access to a lot of information about the current song...
on showCurrentSong()
tell application "iTunes" to ¬
set mysong to the current track
if mysong is missing value then
log "Nothing playing."
else
set NameOfMySong to name of mysong
log NameOfMySong
end if
end showCurrentSong
...and it could probably tell me whether mysong is in a shared
library or not, if I knew the syntax.
I've tried...
set isSongShared to kind of mysong
set isSongShared to shared of mysong
set isSongShared to source of mysong
set isSongShared to playlist of mysong
...all of which compile OK then fail at execution time.
Any ideas?
--Gil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden