Just to report back: what Jens recommended works like a charm. 
Thanks again Jens, saved my life.

I also appended

    and album is "..."

to reduce the risk of retrieving the wrong track.

Paul Sanders

----- Original Message ----- 
From: "Jens Alfke" <j...@mooseyard.com>
To: "Paul Sanders" <p.sand...@alpinesoft.co.uk>
Cc: "Matt Neuburg" <m...@tidbits.com>; "Ramesh P"
<ramesh.pauldu...@gmail.com>; <cocoa-dev@lists.apple.com>
Sent: Tuesday, January 26, 2010 7:37 PM
Subject: Re: How to access iTunes using cocoa

tell app "iTunes"
first track whose name is "....." and artist is "...."
end

This will instantly return the track if it exists, or an
error -1728
(not found).

—Jens



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to