Thank you for the advice adperry. I went back and restructured my code.The script now works the way I had originally planned.The user selects a feature and a 200ft buffer shapefile is created and saved in a specific folder. The only question I have left now is how to get the resulting shapefile to appear in the TOC. I've tried using the arcpy.mapping.AddLayer() module, but I think I'm missing something.....# ---------------------------------------------------------------------------
# Description:
# Creates a 200 ft buffer around a user selected feature
# ---------------------------------------------------------------------------
import arcpy
from arcpy import env
import os
#----------------------------------
# Set the geoprocessing environment
#----------------------------------
OutputBufferData = r"J:\Work\Projects\Case Change Maps\TempWorkspace\Buffer.shp"
env.overwriteOutput = True
#----------------------------------
# Get Parameters from the user
#----------------------------------
DataToBuffer = arcpy.GetParameterAsText(0)
#----------------------------------
# Processes
#----------------------------------
# Buffer the user selection
arcpy.Buffer_analysis(DataToBuffer, OutputBufferData, "200 Feet", "FULL", "ROUND", "NONE", "")
# Add results to the TOC
mxd = arcpy.mapping.MapDocument(r"J:\Work\Projects\Case Change Maps\Testing.mxd")
df = arcpy.mapping.ListDataFrames(mxd)[0]
addLayer = arcpy.mapping.Layer(OutputBufferData)
arcpy.mapping.AddLayer(df,addLayer,"TOP")