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

  • SEARCH
  • Home
  • 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 4612414
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:23:59+00:00 2026-05-22T01:23:59+00:00

Essentially, I need to know when someone hits play within iTunes. I understand how

  • 0

Essentially, I need to know when someone hits play within iTunes. I understand how I can control iTunes using Apple’s Scripting Bridge, but I can’t seem to make iTunes control my app. Is this possible?

Thanks!

  • 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-22T01:23:59+00:00Added an answer on May 22, 2026 at 1:23 am

    In general, it’s not possible to figure out what other apps are doing with events, no. It is also not possible for you to find out when the play button in iTunes is pressed. Even if you were to catch the mouse down event, you’d have to somehow figure out whether iTunes’s play button was under it at the time.

    What you can do in this case, however, is register for the notifications that iTunes posts when a track starts playing. Dave DeLong has laid it out, in another answer here on SO.

    // Register for notifications, perhaps in awakeFromNib
    NSDistributedNotificationCenter *dnc = [NSDistributedNotificationCenter defaultCenter];
    [dnc addObserver:self 
            selector:@selector(iTunesTrackDidChange:) 
                name:@"com.apple.iTunes.playerInfo" 
              object:nil];
    

    - (void)iTunesTrackDidChange:(NSNotification *)note {
        NSLog(@"%@", [note userInfo]);
    }
    

    This doesn’t give you everything you might hope for; Distributed Notifications are expensive, and so iTunes is frugal with them. You get a notification when a track starts playing, and that’s it; no stop, no volume, no distinction between jumping tracks and starting playing from a stop. The notification does have plenty of info about the track itself, though: pretty much all the iTunes metadata, and some of the file info.

    Hope that’s useful!

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

Sidebar

Related Questions

Essentially I want to know if in VB.NET 2005 if using a sqlcommand and
I essentially need to create a version of the following website using JavaScript and
Simple one I think but essentially I need to know what the syntax is
Essentially, I need to know how to make a UIWebView erase everything when you
So I essentially need to do this: String text = line1\n; text += line2\n;
Essentially I need a count of each Entries Comments: SELECT e.*, COUNT(c.id) as comments
I need to parse a simple statement (essentially a chain of function calls on
Essentially, I need to parse the response string of the CHAT CREATE command with
I've got a bit of a problem. Essentially, I need to store a large
Essentially the only thing I can deploy to my deployment machine is a JAR

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.