[AI] Script, traitement par lot : imprimer en PostScript

Bonjour
Je viens vers vous pour m'aider à compléter un script.
Je doit régulièrement convertir des .ai en .ps
Je voudrais faire un traitement par lots sur un dossier.
J'ai essayer en enregistrant un script d'action mais illustrator sélectionne toujours l'impriment par défaut
J'ai trouver ce script sur le forum
Mais j'ai toujours le même problème il sélectionne l’imprimante par défaut, comment le forcer à utiliser l’imprimante PostScript
Merci
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.");

Cet imprimeur semble utiliser des procédés qui datent du siècle dernier…!
Je ne connais pas suffisament Illustrator et JavaScript pour répondre directement.
Mais si on part du principe que tes fichiers .AI sont des fichiers hybrides (voir : http://abracadabrapdf.net/articles.php?lng=fr&pg=961 ) il devient possible d'automatiser l'opération sans une seule ligne de script en utilisant Acrobat et ses puissantes fonctions de traitement par lot pour exporter en .PS

Similar Messages

  • Traitement par lot / Batch processing ?

    English text after the French text
    Bonjour,
    tout le monde connait le "traitement par lots" de photoshop ?
    c'est une façon d'appliquer un script (un ensemble de
    modification, transformation, optimisation ... sur une image)
    à l'esemble des images contenues dans un dossier ! Très
    pratique !
    Et bien je voulais savoir s'il est possible, dans Flash 8
    Pro, de faire la même chose ?
    Exemple :
    J'ai 300 pages en pdf (un catalogue comprenant textes,
    graphiques et images), un pdf par page, et j'aimerai les
    transformer en SWF !
    J'ai essayé avec swftools qui fonctionne parfaitement
    mais qui me fait des fichiers un peut lourd, alors que lorsque je
    passe par Flash 8 Pro mon swf est plus léger ! de plus je peut
    le "nettoyer" !
    Donc si je pouvais traiter mes 300 pdf via flash avec un
    script (centrage, nettoyage, paramétrage, ...) et un
    "traitement par lot" ce serai le pied !
    Comme Flash est chez Adobe, peut être on t ils
    apporté cette fonctionnalité bien pratique ! non ? peut
    être dans une prochaine mise à jour ? un addon ? un
    composant ?
    Je vous remercie par avance pour votre réponse.
    Hello,
    did everyone know the “batch processing” of
    photoshop? it is a way of applying a script (a whole of
    modification, transformation, optimization… on an image) to
    the esemble of the images contained in a file! Very practical!
    And well I wanted to know if it is possible, in Flash 8 Pro,
    to make the same thing?
    Example:
    I have 300 pages in pdf (a catalogue including/understanding
    texts, graphs and images), a pdf by page, and I will like to
    transform them into SWF!
    I tested with swftools which functions perfectly but which
    makes me files one can heavy, whereas when I pass by Flash 8 Pro my
    swf is lighter! moreover I can “clean it”!
    Thus if I could treat my 300 pdf via flash with a script
    (centering, cleaning, parameter setting,…) and a “batch
    processing” it will be the foot!
    How Flash is at Adobe, can be one T it to bring this quite
    practical functionality! not? can be in a forthcoming update? a
    addon? a component?
    I thank you by advance for your answer.

    Cet imprimeur semble utiliser des procédés qui datent du siècle dernier…!
    Je ne connais pas suffisament Illustrator et JavaScript pour répondre directement.
    Mais si on part du principe que tes fichiers .AI sont des fichiers hybrides (voir : http://abracadabrapdf.net/articles.php?lng=fr&pg=961 ) il devient possible d'automatiser l'opération sans une seule ligne de script en utilisant Acrobat et ses puissantes fonctions de traitement par lot pour exporter en .PS

  • Existe-t-il une solution de traitement par lots pour indesign ?

    Bonjour,
    Suite à la recommandation Adobe (plantage d'indesign CC), j'ai installé la version Indesign CC 2014 et étant utilisatrice non chevronnée, je ne savais pas que la version CC 2014 allait me demander de ré-enregistrer tous mes fichiers (1200 au total).
    Ces fichiers sont tous utilisés pour une application iPad avec Folio Builder qui depuis ne synchronise plus mon catalogue sur iPad. Je suis donc plus ou moins condamnée à ouvrir mes 1200 fichiers pour leur attribuer la version CC 2014.
    Vous comprendrez que cette opération ne m'enchante guère et je voudrais donc savoir s'il est possible de convertir les fichiers de CC à CC 2014 par un traitement par lots  (dans le même esprit que Photoshop Script et Automatisation - Traitement par lots).
    Merci d'avance
    Bien cordialement
    Eugénie - NP Création

    Bonjour,
    Merci pour votre réponse mais le script ne permet pas de convertir d'une version CC à une version CC 2014 malheureusement. Je l'ai installé pour vérifier ... les formats de conversion sont
    Merci
    Bien cordialement

  • InDesign et le traitement par lot (ou mailing)

    Bonjour à tous,
    petite question sur InDesign.
    Savez-vous comment faire une sorte de mailing (ou traitement par lot) sur InDesign ?
    Je m'explique, imaginons 10 pages avec un fond et des blocs de textes identiques (un gabarie pour résumer) et supposons un fichier (.doc ou .txt ou .xls...) comprenant une sorte de base de donnée de noms (1 - Jean Dupond, 2 - Pierre Dubois... etc). Est-il possible de faire en sorte que notre fichier InDesign traite cette base de donnée en insérant chaque entrée de fichier (.doc ou .txt ou .xls...) dans chaque page du fichier InDesign ? Bien sur en "incrémentant" à chaque fois (page 1 -> Jean Dupond, page 2 -> Pierre Dubois...)
    Merci mille fois de vos réponses par avance.

    Ça s'appelle la fusion de données.
    Il y a même un tuto disponible ici, créé par votre serviteur : http://forums.mediabox.fr/wiki/tutoriaux/indesign/fusion_donnees

  • Traiter par lot des A3 a scinder en 2 format A4 automatiquement ?

    Bonjour,
    Je numérise des documents de plusieurs format avec un logiciel de production, et transforme ses image en un fichier PDF, ma question est  : peut on avec acrobat 8 Pro, scinder un format A3 en 2 pages A4 ? et bien sur tout cela en automatique, car je traite plus de 20000 fichiers PDF de 20 à 50 pages par jour. donc il est impossible de faire cela en manuelle, et il est aussi impossible de couper en deux les A3 avant la numérisation.
    merci pour votre réponse. bonne journée
    Christophe

    French forum here http://forums.mozfr.org/viewforum.php?f=4

  • Nik collection - Comment faire un traitement par lot dans Photoshop ELEMENTS 12

    Bonjour à vous tous,  Quelqu'un aurait-il l'amabilité de répondre à  cette question :
    J'ai une centaine d'.images auxquelles je désire appliquer le filtre de Nik DFine pour enlever le bruit. Je ne trouve pas la méthode pour le faire, sauf pour Photoshop CS, pourtant les filtres Nik fonctionnent autant avec Photoshop Elements qu'avec Photoshop CS.  Merci et bonne journée.  Cynan05

    Hi ,
    Batch processing with NIK is not possible in Elements

  • Scripts running a lot?

    I have a problem with scripts running a lot.They hang up my page when i'm trying to search or navigate for stuff.A box will come up saying "long running script"..Is this normal because of the browser doing stuff or is it something else?

    Hello SK
    All your workflows, assignments and validation will be lost in new repository.
    Moreover, for exclude problem with starting repository on new environment you should do next steps.
    1)If some WF in process you should develop some application that will get record_id and current WF step(or do it manually) and save that information before start your migration activity.
    2)after that you should delete all WF(and its history), assignment, validation.
    Congratulation, you are ready to start migration.
    I'm not sure that your unix script can manage mdm syndication server, only if that script run some application working with SAP MDM API.
    In that case you should modify application because in SAP MDM API 5.5 and 7.1 is different.
    To Clix application - in SAP MDM 7.1 has been added some changes in command string notation.
    Regards
    Kanstantsin Chernichenka

  • ¿CÓMO CONFIGURO PAGES 5 PARA QUE IMPRIMA EN MARGENES OPUESTOS A AMBOS LADOS DE LA HOJA? // HOW TO CONFIGURE 5 PAGES PRINT MARGINS IN OPPOSITE ON BOTH SIDES OF THE BLADE?

    Hola, de preferencia la respuesta en español. Actualicé mi pages '09 a pages 5 recientemente. Por temas de mi trabajo necesito imprimir con márgenes opuestos, pero no logro configurar al pages para que haga eso. Por favor ayuda.
    Hello, preferably the answer in Spanish. I upgraded my '09 to pages 5 pages recently. In my work I need to print with opposite margins, but I can not configure the pages to do that. Please help.
    Mauricio López Ochoa

    Apple eliminado esta característica en Pages 5. Así como más de 100 otros.
    Pages '09 deben estar en la carpeta Aplicaciones / iWork.
    Utilice eso.
    Peter

  • Calc Scripts run a lot faster after I copy existing database

    Hi,
    I have user being setup as the Application Designer of the application and each time when he run scripts of the database, it takes a lot longer than myself (I'm the Supervisor). The database was built up from scratch, so it is not database copy version. Could this be user specific problem?
    Today, I create another copy of the database within the same application, create a new Scenario, load data, run multiple similar scripts and the time to run all scripts were alot faster when I run from initial database. Is this a coincidence or the performance has indeed improved?
    Your advice is much appreciated!
    Between, Im running on Essbase 7.1.3.0
    Thank you

    So are you saying you are the one to run the scripts after initial DB load?
    What are the index and page size before and after you run the scirpts?
    It is somewhat normal for the inital dataload and agg to run faster than subsequent runs of the agg, this is because typically inital data load is level 0 only members. The agg of the database will then create blocks for upper level members, thereby increasing the DB size. So there are more index entries, as well as blocks to parse thru.
    That being said, if there is considerable increase in agg time, there may be more to address (fragmentation, block size, dynamic calc on sparse members, etc).
    Robert

  • Affichage d'une image traité par matlab sur labview

    Bonjour!!
    je veux faire un traitement d'image avec matlab et afficher les resultats sous  Labview . j'ai essayer la formula node de matlab dans la palette mathematics  mais l'affichage se fait toujours sur matlab comment je peux l'afficher sur labview ??  
    vous trouver ci-joint le programme utiliser .
    % Load jpeg files
    orgImage = imread('Pixel.jpg', 'jpg');
    figure(1); imshow(orgImage);
    % 2D FFT
    fftImage = fftshift(fft2(orgImage)); % 2d fft
    ampImage= abs(fftImage);
    figure(2); imshow(ampImage, [0 10000 ]);
    % Convolution (low-pass filtering)
    filter = fspecial('gaussian',[10 10], 4); % gaussian kernel
    filterImage = conv2(orgImage, filter); % convolution
    figure(3); imshow(filterImage, [0 250]);
    % 2D FFT of filtered image
    fftFilterImage = fftshift(fft2(filterImage));
    ampFilterImage= abs(fftFilterImage);
    figure(4); imshow(ampFilterImage, [0 10000 ]);
    Attachments:
    1335097296331.jpg ‏59 KB

    Hello aziz-be,
    You may find quicker responses in the french forum. 
    http://forums.ni.com/t5/Discussions-de-produit-de-NI/bd-p/4170
    Regarding your question.  The Matlab Scipt Node uses activeX to access an api that calls into the Matlab engine.  Thus any figure generation would occur on the Matlab side of things.  What you could try doing is converting the figure to an image, converting the image to an array, and bringing that array into labview and converting it into a LabVIEW image type which you could then display inside of LabVIEW.  This is a rather convoluted way of displaying a figure on the front panel inside of LabVIEW though.  You may find it much easier to do what you are trying to accomplish with the MathScript Node rather than the Matlab Script Node.
    figure (MathScript RT Module Function)
    http://zone.ni.com/reference/en-XX/help/373123B-01/lvtextmath/msfunc_figure/
    NI LabVIEW MathScript RT Module
    http://www.ni.com/labview/mathscript/
    David A
    National Instruments
    FlexRIO Product Support Engineer

  • Bloqueo para Lotes Repetidos

    Que tal, espero que me puedan ayudar con este tema, resulta que mi cliente necesita que SAP Business One, no permita hacer entradas de mercancia a Lotes previamente creados. es decir que los lotes sean Unicos, ahora bien para esto estoy utilizando El transaction notification, pero algo va mal y no se que es.  este es mi codigo
    IF  @transaction_type in ('A') AND @object_type='59'
    BEGIN
    DECLARE  @LOTE CHAR (20)
    DECLARE BIC SCROLL  CURSOR FOR
    SELECT  T0.[BatchNum]  FROM [dbo].[IBT1]  T0
              INNER JOIN  IGN1 T1 ON T0.[BaseEntry] = T1.[DocEntry]
                                              WHERE T0.[BaseType] = 59
              AND T1.[DocEntry] = @list_of_cols_val_tab_del
               AND T0.[BaseEntry] = @list_of_cols_val_tab_del
    OPEN BIC
    FETCH FIRST FROM BIC INTO @LOTE
    WHILE @@FETCH_STATUS = 0
    BEGIN
    IF  @test IN (SELECT   T4.[BATCHNUM] FROM IBT1 T4 where t4.basetype =59 and t4.batchnum = @LOTE)
    SET @error = 9
                                                                     SET @error_message =   'FOLIOS REPETIDOS'
    FETCH NEXT FROM BIC
          INTO @TEST
    end
          CLOSE BIC
          DEALLOCATE BIC
    END
    Alguien tiene alguna otra idea?
    les agradesco de antemano.
    Saludos.

    Hola.
    Cuando están haciendo la estrada mercancía OP, en el momento de colocar el lote aparece un cuadro de diálogo que avisa que el lote ya existe y que si se desea continuar. Esta es la primera linea de control, por parte del usuario.
    Por otra parte estuve revisando en el foro de expertos y encontré esto:
    - Re: SP_TransactionNotification in Batch detail.
    - Re: How to block the duplication of batch numbers.
    Intente con este otro código:
    /*     Validación para no ingresar mercancía a un lote existente en entrada de mercancía OP
    declare @item nvarchar(20)
    declare @batch nvarchar(32)
    declare @whs nvarchar(8)
    declare @count int
    set @count = 0
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),
          @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    set @count = (select count(*) from oibt where quantity > 0 and
          batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'El lote ''' + @batch + ''' ya existe para el articulo ' + @item 
    select @error, @error_message
    END
    END
    Lo probé y funciona bien.
    Saludos.

  • Compressio​n de vidéo par lots

    Bonjour,
    Je souhaiterais utiliser LabVIEW pour faire du traitement de données sur des films déjà acquis. Il s'agirait de compresser des films en format .avi.
    Je peux y arriver artificiellement en
    - créant un AVI ('IMAQ AVI Create' avec en entrée de 'compression filter' le bon codec de compression et le bon chemin d'enregistrement)
    - puis en décomposant le film en image ('IMAQ AVI Read Frame')
    - puis en le recomposant ('IMAQ AVI Write Frame')
    mais je pense que c'est maladroit, et je me dis qu'il doit bien y avoir un moyen de compresser directement le film non ?
    Si vous savez comment faire, merci de me faire signe !

    Re-Bonjour,
    J'ai trouvé une solution grâce à l'exemple "AVI Compressor Comparison" !!!!
    Chouette !
    Désolée pour le dérangement.

  • Script was taking lot of time.....

    Hi,
    Needing Expert inputs.....I wrote a script but to execute the script it was taking more than 10 hours.I did all optimization according to the DBAG guide starting from HourGlass Model upto Caches and i was given according to the optimization settings....But stiill Am facing that issue....
    Please do the Needful.......
    Thanks/PK.

    Post your script here so that somebody can look into it and make suggestions.

  • Script.vbs para confirurar proxy de mozilla

    Buenas tardes.
    Quisiera saber si existe alguna forma de crear un .vbs o .bat para marcar la opción de "Configuración manual del proxy", en mi red hay un Controlador de dominio el cual siempre que inician sesion usuarios del dominio esta marca la opción "Usar la configuración del proxy del sistema". y esto me impide correr una aplicación la cual usa excepciones y siempre tengo que configurarlo de forma manual.
    Uso Sistemas operativos, WIndows de 32 bits
    Espero me puedan ayudar, y agradezco de antemano su ayuda

    Olá onetimelord,
    O leitor de PDF padrão do Firefox se chama PDF.js, e é Open Source como todos os projetos da Mozilla. :)
    Aqui está a [https://github.com/mozilla/pdf.js/ página do Github] do projeto. Se estiver interessado em saber mais algumas informações, pode acessar [mozilla.github.io/pdf.js/ esta página]/
    Espero que essas informações possam lhe ajudar. Se tiver mais alguma dúvida, por favor, sinta-se à vontade em nos contactar.
    Abraços,
    - Ralph

  • Using errinfo dtrace script..get lots of errors for java proccess

    SYSCALL lwp_cond_wait when using java
    Nov 22, 2009 8:13 AM
    Click to email this message Click to edit this message...
    Hi,
    I am trrying to understand an issue I have..
    I have a SUN server (T5240), I am runng a java application on it.
    The thing is the machine has a very high cpu (usr)..
    I have used a dtrace tool to check for any problems..
    I ran the erronfo tool, I got a very wierd output.
    It looks like the java process is failing...
    This is part of th output:
    tcsh exece 2 7 No such file or directory
    tcsh ioctl 25 7 Inappropriate ioctl for device
    awk stat64 2 12 No such file or directory
    xntpd sigsuspend 4 23 interrupted system call
    grep stat64 2 24 No such file or directory
    tcsh close 9 30 Bad file number
    java lwp_cond_wait 62 1255 timer expired
    I get 1255 timer expired events for the java process..
    What does that mean?? Who Can I countinue with the troubleshooting??
    I have checked the sizes of lwp_cond_wait :
    root@hostname [export/home/admin/DTraceToolkit-0.99]# dtrace -n 'syscall::lwp_cond_wait:entry /execname == "java"/ { @Size = quantize(arg2); }'
    dtrace: description 'syscall::lwp_cond_wait:entry ' matched 1 probe
    value ------------- Distribution ------------- count
    -1 | 0
    0 |@@@@@@@@@@@@@@@@@@@@@@@@@ 184922
    1 | 0
    2 | 0
    4 | 0
    8 | 0
    16 | 0
    32 | 0
    64 | 0
    128 | 0
    256 | 0
    512 | 0
    1024 | 0
    2048 | 0
    4096 | 0
    8192 | 0
    16384 | 0
    32768 | 0
    65536 | 0
    131072 | 0
    262144 | 0
    524288 | 0
    1048576 | 0
    2097152 | 0
    4194304 | 0
    8388608 | 0
    16777216 | 0
    33554432 | 0
    67108864 | 0
    134217728 | 0
    268435456 | 0
    536870912 | 0
    1073741824 | 0
    2147483648 |@@@@@@@@@@@@@@@ 110843
    4294967296 | 0
    What does that mean??
    Thanks!
    Thanks!!

    I'm not sure that last output means anything useful. In lwp_cond_wait, the value for arg2 is a pointer to struct timespec_t. Since arg2 itself is typed uint64_t, what you're quantizing on are raw pointer values, not time. timespec_t looks like this:
    typedef struct timespec {          /* definition per POSIX.4 */
         time_t          tv_sec;          /* seconds */
         long          tv_nsec;     /* and nanoseconds */
    } timespec_t;

Maybe you are looking for

  • Footer in last page

    how to display footer in the last page for 10 pages

  • A Problem Uploading because the window is too low

    I have an iMac running Yosemite.  I am talking about Safari but it happens on other browsers too. I don't know where the problem lies.  When I try to post a message or upload there is a window and that window that is the destination. Sometimes the up

  • Need Debugging Help

    Hi All I am learning Plugins developement for InDesign CS2. In the SDK there is a ww-plugins.pdf, in which it mentioned how we will develop a plugins. I have tried but not able to do it. When I am making plugins the following error I am getting. I kn

  • Worklist for Mass Retirement of Assets

    Hello, My company is in the design development phase of implementing SAP, and I am trying to do a mass retirement of assets by a worklist in our Sandbox.  I have been able to generate the Worklist, but when I go in to transaction AR31 to release the

  • Satellite A550-14K: VT virtualization seems to be disabled

    Hello I bought recently a A500-14K and intend to install Linux (done) and use the Xen virtualization. But it seems that the Xen virtualization is not feasable: the intel VT virtualization is not enabled. I used the "securable.exe" to verify that and