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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:34:07+00:00 2026-05-26T09:34:07+00:00

Using AppleScript I would like to automate the creation of a new user accounts

  • 0

Using AppleScript I would like to automate the creation of a new user accounts on multiple machines. I’m trying to use UI Scripting and cannot seem to be able to do a click command on the “Add Account” (+) button in the iChat Accounts Preference window. I’ve tried to use the Accessibility Inspector.app to infer the name of the button but I still cannot seem to access it via AppleScript.

According to Accessibility Inspector.app the button has the following attributes:

AXRole: AXButton
AXRoleDescription: button
AXHelp: <nil>
AXEnabled: YES
AXFocused (W): NO
AXParent: <AXGroup>
AXWindow: <AXWindow:AXStandardWindow>
AXTopLevelUIElement: <AXWindow:AXStandardWindow>
AXPosition: x=225.00 y=462.00
AXSize: w=23.00 h=22.00
AXTitle: <empty string>
AXIdentifier: _NS:27
AXDescription: Add Account

Here is a sample starter AppleScript that will get you to the Accounts Preference window:

tell application "iChat"
    activate
    tell application "System Events"
        tell process "iChat"
            tell menu bar 1
                click menu item "Preferences…" of menu "iChat"
            end tell
            click button "Accounts" of tool bar 1 of window 1
            click button "Add Account" of window "Accounts"
        end tell
    end tell
end tell

Please note that line 9 is what I’m trying to get working. Below you will find a link to a screenshot of the iChat Accounts Preference window with an arrow pointing to the button that I’m trying to access. Also note that I know that I can just use “keystroke tab” to get to the (+) button, but this will not always work as the number of times you must press tab changes depending on the type of accounts that you already created in iChat.

iChat Account Preferences Window

  • 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-26T09:34:07+00:00Added an answer on May 26, 2026 at 9:34 am

    Not every Ui object has a title, so in those cases you can just use the item number – note that you need to include the entire hierarchy shown in the Inspector window.

    tell application "iChat"
        activate
        tell application "System Events"
            tell process "iChat"
                tell menu bar 1 to click menu item "Preferences…" of menu "iChat"
                delay 0.5
                tell window 1
                    click button "Accounts" of tool bar 1
                    delay 0.5
                    click button 1 of group 1 of group 1
                end tell
            end tell
        end tell
    end tell
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Applescript to automate deployment of applications from Xcode 4. I use System
How would I quit all running user applications using Applescript?
I'm trying to set the tracks of a user playlist using AppleScript. I don't
My app changes statuses in iChat according to the user's hot keys, using AppleScript.
Using a restful resource in Rails, I would like to be able to insert
Using Flex 3, I would like to take an image snapshot such as this:
I am trying to make an application using AppleScript which can remind to check
I'm working for an iPhone project. I would like to use an UI Automation
I am using Applescript to automate some tasks in the OSX Finder. The script
I have to automate the testing for an iOS Simulator application using Applescript. I

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.