Re: How to access iTunes using cocoa
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