Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Start XAMPP by AppleScript

Start XAMPP by AppleScript
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2006
Location: Netherlands
Status: Offline
Reply With Quote
Jul 29, 2006, 06:34 AM
 
I use XAMMP on my G5 for Servoy database development.
What I would like to have is have AppleScript startup XAMPP automaticly with a startup script.

This is what I manually do:

1. Go to a Terminal shell and login as the system administrator root:

sudo su

2. enter root password

3. Call this command to start XAMPP:

/Applications/xampp/xamppfiles/mampp start


How do I get this in an AppleScript?
     
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jul 29, 2006, 10:38 AM
 
do you really need to login into admin to do this?

cuss otherwise using this applescript would start it easy
tell application "mampp"
activate
end tell

Im sure you could do the same to terminal but I wouldn't know how to insert text...
google search might bring that up.
You shouldn't make fun of nerds... you'll be working for one some day.
     
Fresh-Faced Recruit
Join Date: Jul 2006
Location: Netherlands
Status: Offline
Reply With Quote
Jul 29, 2006, 12:24 PM
 
Originally Posted by jay3ld
do you really need to login into admin to do this?
Hi Jay! Yeah.. when I hit enter after sudo su, I need to enter my password....
     
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jul 29, 2006, 12:32 PM
 
No,
I was saying couldn't you just do
/Applications/xampp/xamppfiles/mampp start

to start it up?
You shouldn't make fun of nerds... you'll be working for one some day.
     
Fresh-Faced Recruit
Join Date: Jul 2006
Location: Netherlands
Status: Offline
Reply With Quote
Jul 29, 2006, 03:29 PM
 
Originally Posted by jay3ld
/Applications/xampp/xamppfiles/mampp start
This doesn't work if I only put this line in the ScriptEditor window

tell application "mampp"
activate
end tell
Doesn't work either, I recieve a 'select application' dialog after running the script, it's asking which application is able to run mampp.

Mampp needs to be started up with the Terminal, but not like this...
     
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jul 29, 2006, 03:36 PM
 
Try This:

do shell script "/Applications/xampp/xamppfiles/mampp start" with administrator privileges

Got it from here:
http://www.osxfaq.com/Tutorials/as_unix/index2.ws
also this might help:
http://www.macosxhints.com/article.p...04120314311760
You shouldn't make fun of nerds... you'll be working for one some day.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:38 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2