• 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: "Paul Sanders" <email@hidden>
  • Date: Wed, 27 Jan 2010 10:41:51 -0000

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@hidden>
To: "Paul Sanders" <email@hidden>
Cc: "Matt Neuburg" <email@hidden>; "Ramesh P"
<email@hidden>; <email@hidden>
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@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: Jens Alfke <email@hidden>)
 >Re: How to access iTunes using cocoa (From: "Paul Sanders" <email@hidden>)
 >Re: How to access iTunes using cocoa (From: Jens Alfke <email@hidden>)
 >Re: How to access iTunes using cocoa (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: NSString category name collision?
  • Next by Date: Re: Change background color of UITabBarItem and UITabBar
  • Previous by thread: Re: How to access iTunes using cocoa
  • Next by thread: Re: How to access iTunes using cocoa
  • Index(es):
    • Date
    • Thread