![]() We can use one scripting language to call another scripting language and take advantage of its unique capabilities like displaying a message to an end user. Bash cannot display a dialog, but AppleScript can. AppleScript is another scripting language on your Mac. Run an AppleScript command from Terminal or the command line. Sudo scutil -set ComputerName "Deep Thought" Running the second command requires using “sudo.” Check your computer name in System Preferences > Sharing after running this one. In this case, the current computer’s name. Get or set a “system configuration” setting. Short for “superuser do” - run a command as the “superuser” or “root.” This requires that you’re currently logged in as an administrator. Mkdir -p ~/Desktop/First/Second/Third/Fourth uptimeĬreate a new folder or “make directory” at the path specified. clearĭisplay how many minutes, hours or days your computer has been running without a restart. ![]() Open /System/Library/PreferencePanes/PrintAndScan.prefPaneĮrase the Terminal window and start over at the top. Or open a URL as if you’d entered its address into a web browser: open ~/Library/Preferences Open a file or open a folder as if you’d double-clicked it. Say -v Victoria 'Are you going to eat that sandwich?' Talk to me! (Turn up the volume for this one.) say 'Hello, World!' Press the return key after each line.Įxperiment. They’re all just one line - and for some, I give you a few examples to try. Open the Terminal application found in the Applications > Utilities folder and copy and paste each command below. So, I’ll give you your first 10 commands to try out. So, I encourage you to watch the on-demand webinar. You could learn that one pedal speeds you up and the other slows you down, but knowing one pedal sends more gas to the engine to speed you up and the other pedal squeezes your wheels to slow you down gives you a better mental picture of what you’re actually doing. #JAMF PRO WIPE COMPUTER HOW TO#You don’t need to know how an engine works to begin learning how to drive a car, but it gives you confidence and a better understanding of what’s happening if you do. ![]() It’s not written to teach you how to script, but rather to show you how scripting works. It’s about an hour long, and you can eat your lunch at your desk while you soak it in. If you haven’t yet, go watch the Scripting 101 for Apple Admins webinar. That’s what I want to convince you to do. The hardest part of scripting is getting started. On a scale from one to five (where one was “scripting terrifies me” and five was “I write my own scripts”), about half rated their comfort as either three or four.įor everyone who’s used scripts, edited others’ scripts for your own needs or written your own you’re doing great - keep learning and keep improving your scripting skills! For those of you interested in scripting who said “scripting terrifies me,” this blog post is for you.Īnd anyone who’s interested in taking our Jamf Pro training courses 200, 300 or 400 will find the resources toward the end useful. 10 scripting commands for Apple admins that get you off to a strong startĭuring our Scripting 101 for Apple Admins webinar in late June, I asked attendees to share their comfort level with scripting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |