I have been trying to find a way to script OS X 10 updates. I have never used applescript, Xcode or automator, but I am willing to learn. I just want to know if its possible. I know it is possible in windows with a simple batch file. However, I am releatively new to OS X and have not found a way to automate updates.
So far
1) I figured out all updates are downloaded to /Library/Receipts in a pkg.
2) I also read the man page on the installer -pkg command for terminal, which is supposed to let me install pkg's at the command line. So, I figured I'd just try an applescript with a collection of installer -pkg commands. But when I try to run installer -pkg at the command line with an OS X update pkg it errors out saying it needs authentication. I was logged into the GUI as administrator with full rights. But I still tried su at the command line to get around the authentication error, but it did not work.
Is what I want to do possible? If it is, what's the easiest way to do it: applescript, Xcode or automator? Any ideas on how to begin?
So far
1) I figured out all updates are downloaded to /Library/Receipts in a pkg.
2) I also read the man page on the installer -pkg command for terminal, which is supposed to let me install pkg's at the command line. So, I figured I'd just try an applescript with a collection of installer -pkg commands. But when I try to run installer -pkg at the command line with an OS X update pkg it errors out saying it needs authentication. I was logged into the GUI as administrator with full rights. But I still tried su at the command line to get around the authentication error, but it did not work.
Is what I want to do possible? If it is, what's the easiest way to do it: applescript, Xcode or automator? Any ideas on how to begin?