Fix for MAMP Dashboard Widget
MAMP is a simple way to get a standard Apache/MySQL/PHP install running on a Macintosh for local web developement purposes, like EasyPHP on Windows or XAMPP on Linux. MAMP has builds available for both Intel and PPC-based Macs.
On OSX 10.4, a Dashboard widget lets you start/stop the servers and switch between PHP versions 4 and 5. There’s also a button that supposedly opens a MAMP start page. That button does not work for me, and apparently I’m not the only one with that problem. It’s not a big deal, but I am a crazed perfectionist, so I fixed it. How?
- Go to /Users/YourUserName/Library/Widgets in the Finder.
- Control-click Mamp Control.wdgt and choose "Show Package Contents".
- Open the file called mampwidget.js in your favorite text editor. I used Smultron.
On line 90, you should find the following code:
var startPage = widget.system("/usr/bin/defaults read com.webEdition.MAMP startPage",null).outputString.replace(/[\r\n]/,”");
See the com.webEdition.MAMP part? That points to a preference file that does not exist. The correct name is com.living-e.MAMP - go ahead and edit line 90 so that it reads:
var startPage = widget.system("/usr/bin/defaults read com.living-e.MAMP startPage",null).outputString.replace(/[\r\n]/,”");
Save and close. Hit F12 to go your Dashboard, remove the Mamp Control widget and put it back. Make sure the servers are running, then click the Open start page button. See it work. Post a comment here and praise my immense talent, and infinite modesty.





