I need the name of the current MXD (newbie question)

Discussion created by bob.mijwaard on Jul 14, 2011
Latest reply on Jul 14, 2011 by bob.mijwaard
I have followed the Python course very recently and just finished my first script. To make it more generic I need to know the name of the current MXD

In the script I use:
mxd = arcpy.mapping.MapDocument("CURRENT")

How can I get the name of the used mxd. Tried os.path.basename(mxd) but that did not work. Got the error: MapDocument is unsubscriptable