Hello,
I am super new when it comes to creating apple scripts.
I’m trying to create a few apple scripts that writes to the Info plist.
My main purpose for this is to simply automate the writing to the Server Address string assignment with out having to open up the terminal and type out the following:
(user)$ defaults write /Applications/(NameofApp)\Universal.app/Contents/Info ServerAddress “aaaa.aaaa.com”
Since we are constantly having to quickly switch from one ServerAddress to another while doing some group coordinated testing; I figured the quickest way to make sure that we are all on the same page before we execute our testing is to simply click on the apple scripts and tadaa! We are all pointing to the server address of choice without the hassle of typing stuff out. Therefore eliminating human error and setbacks.
This is the Key and String I’m writing to in the app’s Info.plist
ServerAddress
aaaa.aaaa.com
It would be great to also get an output for “defaults read” as well so we can confirm that the script indeed succeeded in changing the plist.
Anyone’s help with this would be greatly appreciated!