Results 1 to 7 of 7
-
08-12-2019, 03:32 PM #1
- Member Since
- Aug 12, 2019
- Posts
- 4
- Rep Power
- 0
Script commands for System Preferences on OSXHello 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.
- 08-12-2019, 03:49 PM #2
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
08-12-2019, 04:13 PM #3
- Member Since
- Aug 12, 2019
- Posts
- 4
- Rep Power
- 0
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.
08-12-2019, 04:18 PM #4Unless 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
08-12-2019, 04:29 PM #5
- Member Since
- Aug 12, 2019
- Posts
- 4
- Rep Power
- 0
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.
08-12-2019, 05:06 PM #6Maybe 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
======
08-12-2019, 06:42 PM #7
- Member Since
- Aug 12, 2019
- Posts
- 4
- Rep Power
- 0
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
-
System Preferences>Preferences Error
By AndyBorzi in forum macOS - Operating SystemReplies: 12Last Post: 06-14-2016, 05:11 AM -
No Sharing Preferences in System Preferences 10.9.4 MBP
By exile in forum macOS - Operating SystemReplies: 2Last Post: 09-22-2014, 10:22 PM -
Help with system commands?
By thegentlemann in forum Apple NotebooksReplies: 0Last Post: 06-03-2011, 02:11 PM -
help-script to modify system preferences
By marnold37341 in forum macOS - Operating SystemReplies: 0Last Post: 02-07-2004, 11:37 AM -
Writing a script to change browser preferences - Help
By ysuee in forum macOS - Operating SystemReplies: 0Last Post: 01-22-2004, 07:28 PM
Tags for this Thread