---------->> Open a document
---------->> stop for manual change like ------- cmyk collor correction, trapping, color saperation etc.
---------->> run save as command
---------->> unlock all locked layers
---------->> embedd all unembedded like images.
---------->> run export command
---------->> stop for manually select objects in document
---------->> run Object >> rastaraze menu command
---------->> copy width value of page [which come from (shift+o)]
---------->> paste width value in Move dialog box's horizontal value, vertical value should be 0.
---------->> copy move
---------->> select all in artwork
---------->> cut all into clipboard
---------->> close document
Ok, right now it is more clear!
So, I think all these tasks can be scriptable.
Maybe all people here can do some part of this script and at the end all tasks someone insert all in same script.
Below some tasks that I already have:
---------->> Open a document
var openFile = File.openDialog ();
app.open (openFile);
---------->> unlock all locked layers:
var myDoc = app.activeDocument;
var tLayers = myDoc.layers.length;
for (i=0; i< tLayers; i++){
if (myDoc.layers.locked){
myDoc.layers.locked = false;
};
};
---------->> embedd all unembedded like images.
var linksLength = app.activeDocument.placedItems.length;
for ( var i = linksLength-1; i >= 0; i-- ) {
app.activeDocument.placedItems.embed();
};
---------->> select all in artwork
app.activeDocument.selectObjectsOnActiveArtboard();
And I'll writing the others tasks if I can.
See you later,
-Vinícius