Controlling iTunes Remotely
Controlling iTunes Remotely
- Subject: Controlling iTunes Remotely
- From: Matthew Smith <email@hidden>
- Date: Fri, 18 Jul 2003 15:27:12 +1000
I have written the following script. It uses iTunes' sharing to browse the
tracks on my desktop computer from my PowerBook, and when I run the script,
it plays the tracks on my desktop computer. It makes my PowerBook a remote
control for my desktop iTunes.
Does anyone know of any weaknesses in it, and how to make it more robust? So
far I can think of two. If iTunes on the desktop computer is browsing the
library and only showing certain tracks, it will only play the single track
I select if it is not in the list. The other, although I have not
encountered it, is where there is more than one track in the playlist with
the same name, or even two playlists with the same name. I am not sure how
to resolve them. Any ideas?
tell application "iTunes"
set oneTrack to item 1 of selection
set tn to name of oneTrack
set c1 to container of oneTrack
set cn1 to name of c1
set c2 to container of c1
if kind of c2 is shared library then
tell application "itunes" of machine "eppc://g3desktop.local."
play track tn of playlist cn1 of source "Library"
end tell
else
display dialog "The selected track is not on a shared library" buttons
{"OK"}
end if
end tell
--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.