       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


        switch obj.typename
          when "Document"
            for layer in obj.layers
              @process layer

          when "Layer"
            for subPageItem in obj.pageItems
              @process subPageItem, null, opacity

          when "CompoundPathItem"
            for path in obj.pathItems
              @process path, clip, opacity

          when "GroupItem"


      prefix = @prefix stroke, fill, clip, alpha, layerNum, layerName

      layer = @layers[layerNum]
      unless layer?
        layer = @makeLayer()
        @layers[layerNum] = layer

      layer.addPath path, prefix

    prefix: (stroke, fill, clip, alpha) ->
      "{\\an7\\pos(0,0)#{stroke}#{fill}#{alpha}#{clip}\\p1}"

    emptyPrefix: -> ""
    suffix: -> "{\\p0}"

    get: (includeEmptyLayers) ->
      fragments = []
      suffix = @suffix()

      for layer in @layers when layer?
        if includeEmptyLayers && layer.emptyPrefix?
            fragments.push layer.emptyPrefix
            fragments.push "\n"

        for mergeGroup in layer.groups
          for prefix, drawing of mergeGroup.lines
            fragments.push prefix
            fragments.push drawing.join " "
            fragments.push suffix
            fragments.push "\n"

      fragments.pop()
