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 3403380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:15:15+00:00 2026-05-18T05:15:15+00:00

I have a computer (Mac) that is authorized to play music through iTunes which

  • 0

I have a computer (Mac) that is authorized to play music through iTunes which I want to disable. But, I only have ssh access to the machine. Is there an applescript I can run remotely (eg via the terminal) that I can use to de-authorize the machine?

I know that I can unauthorize all the machines I have authorized, but I would prefer to use this solution if it is possible.

  • 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-18T05:15:15+00:00Added an answer on May 18, 2026 at 5:15 am

    I don’t see any properties to authorize/deauthorize in iTunes dictionary but I just played around with GUI scripting and came up with a solution. So, the target Mac will have to have GUI Scripting enabled for the script below to work.

    tell application "System Events"
    tell process "iTunes"
        click menu item "Deauthorize This Computer…" of menu 1 of menu bar item "Store" of menu bar 1
        delay 1
        set frontmost to true
        click menu 1 of menu bar item "Store" of menu bar 1
        set value of text field 1 of window "Deauthorize This Computer" to "password"
        click button "Deauthorize" of window "Deauthorize This Computer"
    end tell
    end tell
    

    You could leave that AppleScipt on your target Mac and then just use the open command to launch it. Or you could copy the above AppleScript and paste it into a shell script and use the HEREDOC method with osascript.

    The full example of this looks like this:

    osascript<<END 
    tell application "System Events"
    tell process "iTunes"
        click menu item "Deauthorize This Computer…" of menu 1 of menu bar item "Store" of menu bar 1
        delay 1
        set frontmost to true
        click menu 1 of menu bar item "Store" of menu bar 1
        set value of text field 1 of window "Deauthorize This Computer" to "password"
        click button "Deauthorize" of window "Deauthorize This Computer"
     end tell
     end tell
    END
    

    The above method works well with Apple Remote Desktop’s Send Unix feature as well.

    Also, note that the password is included in this script which I don’t recommend
    but it is needed on the deauthorize window. If you put the password in the script make sure to secure that script so no one gets ahold of your Apple password.

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

Sidebar

Related Questions

I have an iPhone app that publishes through Bonjour. The Mac counterpart works, they
I only have one computer (running OS X), and need to test in both
I noticed that every time that I restart my computer I have to do
I have installed on my computer C++Test only with UnitTest license (only Unit Test
I want to try some programming for iphone. For that I need a Mac
I have to dash away from the computer frequently, and I want to trigger
I'm going to be getting my first Mac computer soon, and I want to
I am not sure that I am asking right question. But I have a
I'm a coder (I'm on a mac) and I'm using a computer that is
I have a Mac app that uses a framework. In build phases, I've added

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.