TrappingType

I am trying to put together a script for printing among other things. I was browsing Jongware's "Illustrator CS6 Object Reference.chm" in the printing section and I came across "TrappingType".
I'm jumping to conclusions here; if I print via javascript I can have it do the trapping for me (I am already aware of the pathfinder fly-out menu trapping)? I searched the forum for "TrappingType" and I found nothing. Am I drawing the wrong conclusion from this information? Does anyone have an example script using this feature?
=)
JF

TrappingType is the returned value of the .trapping property, it doesn't say, but I assume it's read-only since it's in the "inkInfo" (info) object in the "Ink" object.
from the reference
// Displays the current documents inks in a text frame
var docRef = documents.add();
var textRef = docRef.textFrames.add();
// assemble a string of the inks in this document
var sInks = "";
var iLength = activeDocument.inkList.length;
for(var i=0; i<iLength; i++) {
    sInks += docRef.inkList[i].name;
    sInks += "\r\t";
    sInks += "TrapType = " + docRef.inkList[i].inkInfo.trapping; // TrapType = TrappingType.NORMALTRAPPING
    sInks += "\r\t";
    sInks += "Frequency = " + docRef.inkList[i].inkInfo.frequency;
    sInks += "\r\t";
    sInks += "Density = " + docRef.inkList[i].inkInfo.density;
    sInks += "\r";
textRef.contents = sInks;
textRef.top = 600;
textRef.left = 200;
redraw();
your options for setting Trapping
select your group
app.executeMenuCommand ('Live Pathfinder Trap'); // unfortunately, it brings up the Dialog
or, record an action setting trapping via PathFinder flyout menu, then play your action via javascript, this way the dialog won't show up, but it will use previously used settings.

Similar Messages

Maybe you are looking for

  • IPhone4 Battery life: The report you all have been waiting for!!!

    Hello fellow iPhoners, I'm a proud owner of an iPhone4 who have been getting sporadic battery performance for a little while. One day I can get 5 to 6 hours of usage while another the phone can barely make it past 4 hours doing the same things. There

  • Structure of servlets in weblogic8.1

    I insalled the weblogic8.1 these days only.Actually,i am not getting how the structure of web application(war file) and how to deploy it in the server.

  • I have a new Mark3 D 5, I can't open Raw files

    I have a new Mark3 D 5, I can't open Raw files I've shot in LR 3, I read I would be able to in LR 4 or 5. Because my mac is 10.6.8 I prefer to get LR 4 so I don't have to also update my operating system. Will LR 4 open my rw files in Mark3 D5. What a

  • Can XSLT transformation created with XSLT_TOOL be called from outside?

    Hello, I have created an XSLT transformation with the transaction XSLT_TOOL in the ECC 6.0 system. I got a request if this XSLT transformation can be called from outside SAP, example Informatica Power Center. ( http://www.informatica.com/PRODUCTS_SER

  • ZSAPLINK for Object type = CLAS is not working

    Dear Experts, ZSAPLINK for Object type = CLAS is not working. On executing by selecting Export Object to Slinkee with Object type = CLAS and class name, It is giving the dump which is shown in below snapshots. Pls guide me how to resolve this error.