• 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: Controlling iTunes Remotely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling iTunes Remotely


  • Subject: Re: Controlling iTunes Remotely
  • From: Matthew Smith <email@hidden>
  • Date: Sun, 20 Jul 2003 09:54:03 +1000

on 19/07/2003 02:59, Chris Garaffa at email@hidden wrote:

> The best way to go about this would be to use the database ID property
> of a track and index property of the playlist. For example,
> tell application "iTunes"
> set oneTrack to item 1 of selection
> set tdbid to database ID of oneTrack
> set c1 to container of oneTrack
> set ci1 to index 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 the first track of playlist ci1 whose database id is equal to
> tdbid
> end tell
> else
> display dialog "The selected track is not on a shared library" buttons
> {"OK"}
> end if
> end tell

This wouldn't work. The database id of a shared track is different from the
database id of the track on the original machine. I wouldn't expect it to
either. That original id may already be in use on the local machine.

Other than the name of the track and playlist name I don't see anything in a
shared library that can uniquely identify the shared track on the original
machine. Looks like I will have to stick with track and playlist name.

--
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.

  • Prev by Date: Script to send a single autoreply
  • Next by Date: Re: Opening and closing applications periodically
  • Previous by thread: Re: Controlling iTunes Remotely
  • Next by thread: Re: Controlling iTunes Remotely
  • Index(es):
    • Date
    • Thread