• 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
Re: iTunes: Is the current song shared?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes: Is the current song shared?


  • Subject: Re: iTunes: Is the current song shared?
  • From: Gil Dawson <email@hidden>
  • Date: Sun, 25 Nov 2007 17:09:46 -0800

At 10:26 P +0100 11/25/07, Skeeve wrote:
How can I find out whether the current song is in a shared playlist?

Mybe by checking the (file) track's location. I have no shared library but I assume the location won't start with file://

Well, that works!

	tell application "iTunes"
		try
			set mySongsLocation to location of current track
		on error errm number errn
			set mySongsLocation to ¬
				"*Error: " & errm & ". number " & errn
		end try
		log "Location=" & mySongsLocation
	end tell

...gets error number -1728 if the song is from a shared library and a path if not.

Thanks, Skeeve.

_______________________________________________
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
References: 
 >iTunes: Is the current song shared? (From: Gil Dawson <email@hidden>)
 >Re: iTunes: Is the current song shared? (From: Skeeve <email@hidden>)

  • Prev by Date: Re: Hosted Filemaker pro 8 & applescripts go to error
  • Next by Date: Re: Hosted Filemaker pro 8 & applescripts go to error
  • Previous by thread: Re: iTunes: Is the current song shared?
  • Next by thread: Hosted Filemaker pro 8 & applescripts go to error
  • Index(es):
    • Date
    • Thread