The only thing I can think of that would make this perfect is the ability to drag and drop a kernel from anywhere and install it...The only way to do that would be to implement drag and drop in some form
I thought of AppleScript too, but wouldn't that mean that I would have to recode the entire thing in a different language? AppleScript isn't the same as bash is it? Or could I insert my bash code into AppleScript raw?
EDIT: Since I have nothing better to do, I will tell you how I did this:
First of all, as you know, the original version (released today evening) was just a bash script to run in Terminal. What I wanted to do was make it user friendly, so I researched a long time and tried to find a way where I could just convert the bash script into a GUI app. I finally came across the solution with an open source app called Platypus
. What Platypus does is it puts a GUI wrapper around shell scripts, apple scripts, and some others. So I imported my script and changed the interpreter from "sh" to "bash". Then I set the output mode to text window, made admin priveleges required, and I set it not to shut down once finished running. Then I created my app. It ran the backup, but then it came to the part where you had to type "y" or "n" to confirm kernel installation. This is where I came across my first problem. Platypus apps don't let you import text.
Then I came across the solution for that problem in the form of a little app called CocoaDialog
. What it does is it lets you put in dialog boxes, so I planned to switch the text prompts to clickable dialog boxes. Then I found instructions
on how to integrate PlatyPus and CocoaDialog together. Then I was all set.
After a few long hours of reading CocoaDialog documentation and about 20 copies of the app later, I got one that actually worked. Then I refined it more and voila, the GUI edtion was born!!