Copying certain objects from Illustrator CC2015 is slow

Hey Jimmy,

I don't have Illustrator to test with, but here are a couple of observations:

GraphicConverter reports the tiff alone takes 258.2 MB in Memory.

The Script Editor is not really designed to display so much data.

I tried copying the tiff using GraphicConverter and then running the clipboard as record in Script Debugger. Not surprisingly it hung.

So I tried writing to a file instead:

set filePath to (path to desktop as text) & "clipboardData.dat"
writeFile((the clipboard as record), filePath, 0, record)

on writeFile(srcData, targetFile, startPosition, dataType)
  try
    set fileRef to open for access targetFile with write permission
    if startPosition = 0 then
      set eof of fileRef to 0
    end if
    write srcData to fileRef as dataType starting at startPosition
    close access fileRef
  on error errMsg number errNum
    try
      close access fileRef
    end try
    error "Error in handler: writeFile of library: gen.lib" & return & return & errMsg
  end try
end writeFile

It hung Script Debugger for quite a while, but after about 4 minutes or so I got a file. A 1.05 GB file.

So. I'm not shocked that you're having problems.

Unfortunately I don't have any ideas for sorting them out.

-Chris