Re: iTunes: Is the current song shared?
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