Hey brjig,
sounds like you have an installation problem. First you notice there are two scripts, one is mel for the GUI, the other is Python for the functions. You have the mel script installed ok because the GUI works, so the problem is with your python installation. It is not necessarily the case that you can run python scripts from your script folder.
Obviously, have a look at the docs, but in brief the simplest way is to set the python path in your maya.env file. this can be found on osx in :
~/Library/Preferences/Autodesk/maya/2009/maya.env
it may not be there already so just make a plain text file and save as maya.env , you might have to check permissions on that folder.
in the content of the maya.env file is where you designate your python path (for maya).
so have a line similar to:
PYTHONPATH = /Users/davegreenwood/dev/python
which in my case is a folder I created in my home directory, but can be anywhere you like, you could set your mel scripts folder.
I’m sure this is your problem, good luck.
Dave.


based heavily on Duncan’s blog post 