   methods = {
     common: ->
 
+      pWin.show( )
       output.init( allThePaths[0] )
 
       for path, i in allThePaths
         output.appendPath path
+        pWin.pBar.value = Math.ceil i*1000/allThePaths.length
+        pWin.update( )
 
       output.append output.suffix( )
+      pWin.close( )
       output.merge( )
 
     collectActiveLayer: ->

ai2assBackend = ( options ) ->
  app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS
  doc = app.activeDocument
  org = doc.rulerOrigin


  CG_createDrawingFromPoints = ( pathPoints ) ->
    drawStr = ""
    # I don't actually know how you end up with a path with 0 elements.
    if pathPoints.length > 0
      drawStr += "CGContextMoveToPoint(ctx, #{CG_fixCoords pathPoints[0].anchor});\n"

