Please visit the new Mac-Forums Facebook page:
Join Us @ Mac-Forums Facebook Page



Results 1 to 7 of 7
  1. #1
    Script commands for System Preferences on OSX
    Hello Forum,

    I'm new to this site. I'm currently learning how to script. However, I'm running into some issues. I'm using Text Wrangler to save my scripts. I don't know where to go to learn how the commands for each options in the System Prefernces. Any guidance will be much appreciated. I'm trying to save time by wrtting a script that can run my customization.

    Thanks in advanced.

  2. #2
    Script commands for System Preferences on OSX
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    12,154
    Rep Power
    24
    Not nearly enough information for us to help you. Script in what language? Script to do what? What does Sys Prefs have to do with this?
    --
    Regards
    ...Ashwin


  3. #3
    Hello, Thanks for your quick replied.

    I'm using Bash and learning several commands. The reason why I'm trying to script, is to simplify my work. Usually it takes me a long time configuring or customizing the OS. I seen several videos where they create a script for every option they select with the System Preferences ans it customize it in seconds. I hope this makes sense. I don't know how else to explain it.

  4. #4
    Script commands for System Preferences on OSX
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    12,154
    Rep Power
    24
    Unless I'm mistaken, none of the System Preferences components are exposed in a manner in which you can modify them through a Bash script. If you were to use AppleScript, it might be possible to automate some of the UI interactions, but even that might be limited.

    What you should tell us WHAT part of the OS you are trying to customize and how. How often are you making these configuration changes requiring you to automate it with a script? If you are doing this in a institutional setting where you are doing this on multiple Macs, that's a different story, but if this is on your personal Mac, why would you be tweaking these settings constantly?

    If your intention is to learn to script, perhaps you should set a different goal and then see if your Bash scripting an be applied elsewhere.
    --
    Regards
    ...Ashwin


  5. #5
    If using apple script will work better than I will try that instead. The reason why I want to learn to script, because I want to be able to push the scripts I create through JAMF. It's for an instition. I'm currently managing over 500 Macs. Some require special configuration and others are standard. I just don't know which direction to start. That's why I'm here.

    Some of the System Preferences I want to be able to tweak in a fly are Screen Saver, Parental Controls, Adding passwords to WIFI connections,
    Sharing so I can change the computer name and so on. All these specific customization can take a long time.

  6. #6
    Script commands for System Preferences on OSX
    pm-r's Avatar
    Member Since
    Oct 16, 2010
    Location
    Brentwood Bay, BC, Canada
    Posts
    12,437
    Rep Power
    20
    Maybe do some googling and see if there's something already available that would suit your needs.

    Like:
    Automating the User Interface
    Mac Automation Scripting Guide: Automating the User Interface

    and
    mac scripting for system administrator
    mac scripting for system administrator - Google Search



    - Patrick
    ======

  7. #7
    Thank you, I will try that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. System Preferences>Preferences Error
    By AndyBorzi in forum macOS - Operating System
    Replies: 12
    Last Post: 06-14-2016, 05:11 AM
  2. No Sharing Preferences in System Preferences 10.9.4 MBP
    By exile in forum macOS - Operating System
    Replies: 2
    Last Post: 09-22-2014, 10:22 PM
  3. Help with system commands?
    By thegentlemann in forum Apple Notebooks
    Replies: 0
    Last Post: 06-03-2011, 02:11 PM
  4. help-script to modify system preferences
    By marnold37341 in forum macOS - Operating System
    Replies: 0
    Last Post: 02-07-2004, 11:37 AM
  5. Writing a script to change browser preferences - Help
    By ysuee in forum macOS - Operating System
    Replies: 0
    Last Post: 01-22-2004, 07:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •