Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 456323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:27:34+00:00 2026-05-12T22:27:34+00:00

Are there any good solutions for capturing events from within iTunes? I’d like to

  • 0

Are there any good solutions for capturing events from within iTunes?

I’d like to build a plugin that sits inside of iTunes and respondes to rating changes for particular songs. For Windows they have an SDK that I haven’t delved into yet, but I’d like to find something for Mac too.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:27:34+00:00Added an answer on May 12, 2026 at 10:27 pm

    As far as I know, Apple provides a free (as in zero-cost) SDK for iTunes Visual Plug-Ins for both OS X and Windows. If you can’t get what you need through that, you could always use iTunes Apple Events scripting interface to monitor via polling from another OS X app using an OSA-compatible interface such as AppleScript or appscript with Python, Ruby, or Objective-C. That may not be what you’d like but it is documented and supported.

    For example, with py-appscript, here’s how to access the current track and the those in the recently played smartlist:

    >>> from appscript import *
    >>> it = app('iTunes')
    >>> it.current_track.rating()  # 40 == 2 stars
    40
    >>> len(it.playlists['Recently Played'].tracks())
    80
    >>> it.playlists['Recently Played'].tracks[1].rating()
    40
    >>> it.playlists['Recently Played'].tracks[1].rating.set(to=100)
    >>> it.playlists['Recently Played'].tracks[1].rating()  # 100 = 5 stars
    100
    

    It’s also possible to filter on various metadata fields (open the iTunes.app scripting definition in the AppleScript Script Editor to browse):

    >>> import datetime
    >>> an_hour_ago = datetime.datetime.now() - datetime.timedelta(hours=1)
    >>> it.playlists['Library'].tracks[its.modification_date >= an_hour_ago]()
    [app(u'/Applications/iTunes.app').sources.ID(45).library_playlists.ID(49347).file_tracks.ID(72017)]
    

    But note that changes to ratings do not appear to affect the modification date.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any good technical solutions for extremely long term archiving of data, for
Is there any good way to deal with the class renaming refactor from Resharper
Are there any good references for synchronisation algorithms? I'm interested in algorithms that synchronize
Are there any good books or website that go over creating a JTable ?
Is there any good tool for working on Dabtabase apart from Toad which requires
Are there any good configuration file reading libraries for C\C++ that can be used
Is there any good tool or tool-chain that allows UML images in the .svg
Are there any good solutions out there for TDD of a MacOSX Objective-c app?
Are there any good (preferably free) solutions out there? I have already found these:
I'm looking to evaluate a few opensource e-commerce solutions. Are there any good alternatives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.