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

Re: get iTunes songs


  • Subject: Re: get iTunes songs
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 18 Oct 2006 08:25:09 +0100

But I thought Apple had provided the XML file with that very intention. It is meant to be used by other apps.

After all, the real iTunes Database is in a different file and many of Apple's other apps read in the XML. If it breaks for my app, it is likely to break in a lot of Apple's apps as well.

Mike.

On 17 Oct 2006, at 20:28, John C. Daub wrote:

on 10/17/06 3:17 AM, Mike Abdullah at email@hidden wrote:

This is true.  However, on my PowerBook G4, it does take approx. 30
seconds with iTunes 7 to run Matt's suggested script.  That's 30
seconds where the app is completely unresponsive.  It's not easy to
do this applescript in a secondary thread.

This is also why I suggest trying different approaches, and you might want
to try hand-writing the actual AppleEvents yourself instead of relying on
however AppleScript does it. You may be able to arrive at a more efficient
solution.


Reading the dictionary on the other hand is very easy to do.

True.

In the end it really depends what you want. Do you want something that's
fast but risks breakage, constant maintenance and vigilance on your part to
keep your users happy and working without interruption? Or do you want
something that's a bit slower, but is your best chance at working without
interruption to your users? I can't answer that, that's up to the needs of
your users.


If you really want to, provide both mechanisms... thus if the fast- direct
method breaks, users can still have a fallback solution that won't be as
fast, but ought to at least keep them working until you can update.


--
John C. Daub }:-)>=
<mailto:email@hidden> <http://www.hsoi.com/>
"Lemon curry?"


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: get iTunes songs
      • From: "John C. Daub" <email@hidden>
References: 
 >Re: get iTunes songs (From: "John C. Daub" <email@hidden>)

  • Prev by Date: Re: Capture spacebar
  • Next by Date: Re: importing MyDocument.h compiler errors and warnings
  • Previous by thread: Re: get iTunes songs
  • Next by thread: Re: get iTunes songs
  • Index(es):
    • Date
    • Thread