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" <[email protected]>
To: "Paul Sanders" <[email protected]>
Cc: "Matt Neuburg" <[email protected]>; "Ramesh P"
<[email protected]>; <[email protected]>
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 ([email protected])
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 [email protected]