• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iTunes: Is the current song shared?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: iTunes: Is the current song shared?
      • From: Skeeve <email@hidden>
  • Prev by Date: Script Editor rewrites my script, doesn't like its rewrite
  • Next by Date: Re: iTunes: Is the current song shared?
  • Previous by thread: Re: Script Editor rewrites my script, doesn't like its rewrite
  • Next by thread: Re: iTunes: Is the current song shared?
  • Index(es):
    • Date
    • Thread