• 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: How to determine if iTunes has been updated or a sync has occurred?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine if iTunes has been updated or a sync has occurred?


  • Subject: Re: How to determine if iTunes has been updated or a sync has occurred?
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 25 Mar 2012 12:13:00 -0500

On Mar 25, 2012, at 11:46 AM, Michael Crawford wrote:

> I examined the file you pointed me to and it looks like data that is updated when iTunes is installed or a software update is applied.  Nice to know that data is there but it does not appear to be what I need.  What I really want to know is when a user adds or removes one or more tracks to their iTunes library.  I'm assuming there is actually no published property or method for determining this but I thought, if there is, AppleScript Users would know about it.

Oh. OK. I looked around and found this file
	/Users/username/Music/iTunes/iTunes Music Library.xml

To take a look at its contents, make a copy onto your desktop; change the extension from xml to plist; then open the file with Property List Editor or Xcode.

I think the info you need is in the 'Tracks' dictionary/record. You can read this into AppleScript using "System Events", but you have to use the Xml Suite, not the not the Property List Suite. Somewhere I have the code to read 'Tracks' into a record, but I don't remember where it is at the moment.

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to determine if iTunes has been updated or a sync has occurred?
      • From: Luther Fuller <email@hidden>
References: 
 >How to determine if iTunes has been updated or a sync has occurred? (From: Michael Crawford <email@hidden>)
 >Re: How to determine if iTunes has been updated or a sync has occurred? (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: How to determine if iTunes has been updated or a sync has occurred?
  • Next by Date: Sending an image as attachment in Mail.
  • Previous by thread: Re: How to determine if iTunes has been updated or a sync has occurred?
  • Next by thread: Re: How to determine if iTunes has been updated or a sync has occurred?
  • Index(es):
    • Date
    • Thread