• 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 access iTunes using cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to access iTunes using cocoa


  • Subject: Re: How to access iTunes using cocoa
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 26 Jan 2010 10:19:58 -0800


On Jan 26, 2010, at 9:41 AM, Paul Sanders wrote:

I use Cocoa's NSAppleScript class. This seems to work fine on Tiger, Leopard and Snow Leopard.

Yup, it just has the limitation that you have to run the script synchronously, which sucks since many iTunes commands can take a long time. There's no workaround to this that I've been able to find, since NSAppleScript is not thread-safe.


an efficient way to find a track by artist and title would be nice - scanning large libraries in AppleScript is very slow.

Not to veer off-topic into AppleScript, but iTunes' "search" command is a fast way to find tracks, though awkward to use.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: How to access iTunes using cocoa (From: Matt Neuburg <email@hidden>)
 >Re: How to access iTunes using cocoa (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: How to access iTunes using cocoa
  • Next by Date: Need help figuring out poor Core Data performance
  • Previous by thread: Re: How to access iTunes using cocoa
  • Next by thread: Re: How to access iTunes using cocoa
  • Index(es):
    • Date
    • Thread