           recursePageItem pageItem
 
       @common( )
+      return output.get()
 
     giveMeASeizure: ->
-      output.merge = ->
-        @append "\n"
 
       pWin.label = pWin.add "statictext", undefined, ""
 
       for layer in doc.layers
-        currLayer = layer
-        pWin.label.text = "Layer: #{currLayer.name}"
-
-        if currLayer.pageItems.length isnt 0 and currLayer.visible
-          @collectActiveLayer( )
-        else if currLayer.pageItems.length is 0
-          output.append "\n"
-
-      output.str
+        pWin.label.text = "Layer: #{layer.name}"
+
+        for pageItem in layer.pageItems
+          recursePageItem pageItem
+
+      @common( )
+      return output.get()
   }
 
   methods[options.method]( )

      output.prefix = -> ""
      output.suffix = -> ""
    when "line"
      output.prefix = -> "Dialogue: #{@lastLayerNum},0:00:00.00,0:00:00.00,AI,#{@lastLayer},0,0,0,,{\\an7\\pos(0,0)#{@lastStroke}#{@lastFill}\\p1}"
      output.suffix = -> ""




  methods = {
    common: ->
      pWin.show( )

      for path, i in allThePaths
        output.appendPath path
        pWin.pBar.value = Math.ceil i*250/(allThePaths.length-1)
        pWin.update( )

      pWin.close( )
      allThePaths = []

    collectActiveLayer: ->

