how do you play a playlist to another computer?

ok, I understand how you can play a playlist on a computer, and I understand how I can tell another computer via a network to play a playlist. However, is there a way to play a playlist on computer A on computer B? When I am on computer B, I can play all of computer A’s songs, but is there a way to control this through computer A? Also, in the playlist window, I can access all of songs on another computer. But, I cannot script it what to play, because these files are not actually a playlist. What is it?
play local

tell application "itunes"
play playlist 1
end tell

start play on a network computer

tell application "itunes" of machine "eppc://central"
play playlist 1
end tell

how can I play playlist 1 of local itunes on the other machine?
is there a way to tell it to play that shared file “user x’s music”?

Try this:

tell application "iTunes" of machine "eppc://USERNAME:PASSWORD@IPADDRESS"
	play user playlist "THE PLAYLIST YOU WANT" of source "SHARED NAME"
end tell

“THE PLAYLIST YOU WANT” is the name of the playlist on the remote computer you want to play.
“SHARED NAME” is the name setup in the sharing tab of the remote computer’s iTunes preferences.

To find the “SHARED NAME” try:

tell application "iTunes" of machine "eppc://USERNAME:PASSWORD@IPADDRESS"
	sources
end tell

To find “THE PLAYLIST YOU WANT” try:

tell application "iTunes" of machine "eppc://USERNAME:PASSWORD@IPADDRESS"
	get name of playlists of source "SHARED NAME"
end tell

“SHARED NAME” is the name setup in the sharing tab of the remote computer’s iTunes preferences.

CarbonQuark

If you want the songs to play on the computer that you are on try:

tell application "iTunes"
	play playlist "MY_PLAYLIST" of source "SHARED NAME"
end tell

CarbonQuark

Here is what I found.
Computer 1 - “eppc://central”, source id = 36
Computer 2 - “eppc://small” , source id = 64

If I am on computer 1, I can make it play its own playlist by doing this:

tell application "iTunes" of machine "eppc://central"
	play playlist "library" of source id 36
end tell

from computer 1, I can also start computer 2 with its own playlist by typing this"

tell application "iTunes" of machine "eppc://small"
	play playlist "library" of source id 64
end tell

However, when i try to play the playlist of computer 1 on computer 2, it does not work. Anyone know why?

tell application "iTunes" of machine "eppc://central"
	play playlist "library" of source id 64
end tell

Did you try:

tell application "iTunes"
   play playlist "library" of source id 36
end tell

CarbonQuark

no luck there either. I cant figure it out.

Jacques, I tried this script, but I am getting “remote access is not allowed”. Do you know what this means? I am not connected to the network right now because I am at work. But it seems like a weird error. I would expect something else.

Jacques, I ran a script to tell me the name of playlists, and the shared music does not show up…because it is classified as a source and not a playlist. So, I have this script. It works on the local computer, making it play the network music.

tell application "iTunes" of machine "eppc://small"
	play source "ian"
end tell

This allows me to run the source (ian) from the other computer on the computer I am on now (which is named small). Now if I get on my other computer and run the exact script, I get a prompt for authentication, that says "Bad username or password. Authentication is require for “iTunes” on “eppc://small”. Sometimes, it doesn’t even say that it is a bad username or password, but just that I need authenticated. This is weird. Furthermore, I do not require authentication in itunes or anywhere else, and if I enter my system password, it will not accept it. So, I dont understand why it asks me when it does, and why it doesnt accept my password. So, the above script would worrk perfect if I could run it on my computer. I understand how it should work, but it is not doing it. It does the same thing when I insert “using terms from” in there also. Earlier, I could start music on one computer from another, but I could not play a source. Now, I can play a source, but only locally. I am confused.

Jacques,
I am having trouble with my computers. I do not know if the settings have changed somehow or what. 2 days ago, this was all working. It wouldn’t even ask for a password. Now, it prompts me for it,and I dont know why. In sharing of sys preferences, I no not require it. And, it does not accept the only password I have in my computer. I must have messed something up in preferences. I almost swear i did not change anything. Well…I guess I need to figure that out before I do anything else. Thanks, Ian

i will try that out. i really is weird about my computer.the other day, the scripts were alll running correctly. the same little script it now acting up. i will try this out and see if i can get to the bottom of this. thanks, ian