tiff is new to CS6, it seems to be ok, except
op = new ExportOptionsTIFF
op = new ExportOptionsTIFF();
var f = new File ("~/Desktop/My file")
var f = new File ("~/Desktop/My file.tiff");
Hi Carlos, thank you a lot as ever.
The () was missed after declarong the object. I did not repair it haha. Will correct it tomorrow moring.
Even inserting the () after ExportOptionsTIFF the errors persists "Enumerated Value Expected". So I made a simple test: I disabled one by one the properties I set for Tiff options. And...I was able to export the TIFF without problems by disabling this property:
op.antiAliasing = true
Question is: Why this was giving problem?? haha
No problem anylonger.
And forget what I mentioned about not necessary to append extension at the end of the file name. If you do not insert the extension .tiff, it will go without extension :/
You are right
It probably got confused. Since the default is true, it's not really needed.
Also a word of warning about the line IZWCompression. That's really a lowercase L and not a capital I as the documentation shows.
op.antiAliasing = AntiAliasingMethod.ARTOPTIMIZED;
op.antiAliasing = AntiAliasingMethod.TYPEOPTIMIZED;
This is the data grabbed straight out of the scripting interface: http://jongware.mit.edu/iljscs6html/iljscs6/pc_ExportOptionsTIFF.html
as it also appears in the ESTK Help object browser.
That lowercase ell sure is devious. Some automated variable naming system did its work, methinks. InDesign has a variable called "Screeening", the last four or five versions.