       @commands.push Math.round( (doc.height - (org[1] + coordArr[1]))*100 )/100
 
   }
-
-  if options.combineStrategy?
-    output.combineStrategy = options.combineStrategy
-
-  switch options.wrapper
-    when "clip"
-      output.prefix = -> "\\clip("
-      output.suffix = -> ")"
-    when "iclip"
-      output.prefix = -> "\\iclip("
-      output.suffix = -> ")"
-    when "bare"
-      output.prefix = -> ""
-      output.suffix = -> ""
-    when "line"
-      output.prefix = (stroke, fill, clip, alpha, layerNum, layerName) ->
-        "Dialogue: #{layerNum},0:00:00.00,0:00:00.00,AI,#{layerName},0,0,0,,{\\an7\\pos(0,0)#{stroke}#{fill}#{alpha}#{clip}\\p1}"
-      output.suffix = -> ""
-      output.emptyPrefix = (layerNum, layerName) ->
-        "Dialogue: #{layerNum},0:00:00.00,0:00:00.00,AI,#{layerName},0,0,0,,"
-
-  alert "Your colorspace needs to be RGB if you want colors." if doc.documentColorSpace == DocumentColorSpace.CMYK
 
 
 

      # LAYER, WHICH MEANS IT IS IMPOSSIBLE TO REPRODUCE THE WAY
      # SUBLAYERS ARE LAYERED. TL;DR IF YOU STICK A LAYER INSIDE ANOTHER
      # LAYER, FUCK YOU FOREVER.
      unless currLayer.visible
        return "Not doing anything to that invisible layer."

      pWin.show( )
      output.process currLayer
      pWin.close( )

      return output.get()

    collectAllLayers: ->
      pWin.show( )
      output.process doc
      pWin.close( )

      return output.get()

    collectAllLayersIncludeEmpty: ->
      pWin.show( )
      output.process doc
      pWin.close( )

      return output.get(true)
  }

  methods[options.method]( )

  pWin.pBar.preferredSize = [ 250, 10 ]
  doc = app.activeDocument
  org = doc.rulerOrigin
  black = new RGBColor();

  countPathItems = ( obj ) ->
