Hi,
I am running xampp for Mac on my dev machine. I like it a lot because of its easy setup but I have a problem- I can't get xampp to start at boot, which is bad because I use my mac as a demo server to show my web design to my clients. My Mac is set to reboot automatically after a power failure, unlike to web server comes with OS X, xampp won't restart without my intervention.
I wrote a shell script to start xampp, but it requires sudo which requires the root password. then I use AppleScript to start the shell script like this:
do shell script "sudo ./Desktop/xamppBash"
Once I run the AppleScript, the Terminal comes up, waiting for a password, here is where I get stuck. Does anyone know how I can use AppleScript to enter the password? or better yet, can someone also tell me a easier way to start xampp at boot? It's driving me CRAZY
Thanks in advance.
BTW, My Mac is a G4 mini
I am running xampp for Mac on my dev machine. I like it a lot because of its easy setup but I have a problem- I can't get xampp to start at boot, which is bad because I use my mac as a demo server to show my web design to my clients. My Mac is set to reboot automatically after a power failure, unlike to web server comes with OS X, xampp won't restart without my intervention.
I wrote a shell script to start xampp, but it requires sudo which requires the root password. then I use AppleScript to start the shell script like this:
do shell script "sudo ./Desktop/xamppBash"
Once I run the AppleScript, the Terminal comes up, waiting for a password, here is where I get stuck. Does anyone know how I can use AppleScript to enter the password? or better yet, can someone also tell me a easier way to start xampp at boot? It's driving me CRAZY
Thanks in advance.
BTW, My Mac is a G4 mini