Illustrator CC Flatten Transparency with doScript(action, actionSet)


hi yall!

 

i have creative cloud illustrator i'd process bunch of files.   of course, processing needs, file has outlined & expanded, etc, ensure plugin items, text frames , strokes become outlined shapes mess with.  excited potential of doscript in illustrator play action, made simple action selects , flattens transparency.  seem work, except part gives me aler box of error: "the operation cannot complete because of unknown error: [parm]" .

the flattening process seems have worked ok though, , objects did become flattened.  error message can turned off using userinteractionlevel.dontdisplayalerts , wacky things happen display, such edges of paths become invisible , preview redrawing gets wiggy.

 

does have better way flatten transparency, or there i'm missing?

 

the action this:

 

/version 3

/name [ 7

          466c617474656e

]

/isopen 1

/actioncount 1

/action-1 {

          /name [ 20

                    466c617474656e205472616e73706172656e6379

          ]

          /keyindex 0

          /colorindex 0

          /isopen 1

          /eventcount 2

          /event-1 {

                    /userulersin1stquadrant 0

                    /internalname (adobe_selectall)

                    /localizedname [ 10

                              53656c65637420416c6c

                    ]

                    /isopen 0

                    /ison 1

                    /hasdialog 0

                    /parametercount 0

          }

          /event-2 {

                    /userulersin1stquadrant 0

                    /internalname (ai_plugin_flatten_transparency)

                    /localizedname [ 20

                              466c617474656e205472616e73706172656e6379

                    ]

                    /isopen 0

                    /ison 1

                    /hasdialog 1

                    /showdialog 0

                    /parametercount 5

                    /parameter-1 {

                              /key 1920169082

                              /showinpalette 4294967295

                              /type (integer)

                              /value 75

                    }

                    /parameter-2 {

                              /key 1919253100

                              /showinpalette 4294967295

                              /type (unit real)

                              /value 300.0

                              /unit 592342629

                    }

                    /parameter-3 {

                              /key 1869902968

                              /showinpalette 4294967295

                              /type (boolean)

                              /value 1

                    }

                    /parameter-4 {

                              /key 1869902699

                              /showinpalette 4294967295

                              /type (boolean)

                              /value 1

                    }

                    /parameter-5 {

                              /key 1667463282

                              /showinpalette 4294967295

                              /type (boolean)

                              /value 1

                    }

          }

}

 

and script this:

 

function test(){

     app.loadaction('file.aia of actions described above');

     app.doscript('flatten transparency', 'flatten', false);

}

test();

 

thanks!

 

screen shot 2013-08-19 @ 3.23.09 pm.png

i chalk novelty of cc in 2013, have not experienced error since.



More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands