Hello
Ineed help tocompletea script.
Imustregularlyconvert.Haveto.Ps
Iwould like to makeabatchon a folder.
I triedrecordingan action scriptillustratorbutalways selectthedefaultprint.
Ifindthis scripton the forum
ButI still have thesame problemit selectsthe default printer,how toforce it to usethe PostScript printer
Thank you
var docs = app.documents;
var docCount = docs.length;
// if there are opened documents, print them, otherwise ask for a folder to batch print
if (docCount>0) {
alert(docCount);
printOpenDocs(docs);
}
else {
var folder = Folder.selectDialog("Select Source Folder..."); // select folder
printFolder(folder);
}
// Prints and closes each open document
function printOpenDocs(docs) {
for (j=docCount-1; j>=0; j--) {
var jdoc = docs[j];
jdoc.print(options);
jdoc.close(SaveOptions.
DONOTSAVECHANGES);
}
}
function printFolder(folder) {
if (folder==null) {
alert("Good Bye");
}
else {
var files = folder.getFiles ("*.ai"); // get files
var fileCount = files.length; // count them
if (fileCount>0) {
for (i=0; i<fileCount; i++) {
var idoc = app.open(files[i]);
idoc.print();
idoc.close();
}
}
else {
alert("There are no Illustrator files in this folder.");
}
}
}