Impossible to get any Script Batch to run

Hello together,

First, thank you for this community.

It s a shame, I can´t get any Batch script to run.

For example a PDF file do lot with a selection of folder.

I always alert, no matching file found.

I use cs 5 on 5 with osx 10.8.2 g

Here is the script... it shouldn't be a big thing!

why no file does not fit into the "mask"?

Here is the script

/**********************************************************

ADOBE SYSTEMS INCORPORATED

Copyright 2005 - 2006 Adobe Systems Incorporated

All rights reserved

NOTE: Adobe permits you to use, modify, and

distribute this file under the terms

the license agreement Adobe accompanying him.

If you received this file from a source

other than Adobe, then your use, modification,

or distribution of it requires obtaining

written permission from Adobe.

*********************************************************/

/**********************************************************

Export to PDFs.jsx

DESCRIPTION

This example gets the files specified by the user of the

batch and selected folder treats and records

in PDF format.

Changes by Patrick Mineault:

-Only the processed .ai files

-the files saved in the same folder as the input files

-export files have names (oldname) _export.pdf

-Settings PDF: unchangeable / acrobatLayers = false

for maximum compatibility with preview

**********************************************************/

Main code [the script starts here]

Uncomment to delete the Illustrator warning dialog boxes

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

var destFolder sourceFolder, files, type sourceDoc file, targetFile, pdfSaveOpts;

Select the source folder.

sourceFolder = Folder.selectDialog ("choose the folder with Illustrator .ai files you want to convert to PDF ');

If a valid file is selected

If (sourceFolder! = null)

{

files = new Array();

fileType = "* .ai; Guest ("select the type of Illustrator files you want to process.") For example: * .ai ',' ');

Download all the files that match the pattern

files = sourceFolder.getFiles (file type);

If (files.length > 0)

{

Get the destination to save files

destFolder = Folder.selectDialog ('Select the folder where you want to save the converted PDF files.', ' ~');

destFolder = sourceFolder;

for (i = 0; i < files.length; i ++)

{

sourceDoc = app.open (files [i]); Returns the document object

Call the getNewName function to get the name and the file to save the pdf file

targetFile = getNewName();

GetPDFOptions function call to get the files PDFSaveOptions

pdfSaveOpts = getPDFOptions ();

Save as pdf

sourceDoc.saveAs (targetFile, pdfSaveOpts);

sourceDoc.close ();

}

Alert ("the files are saved in PDF format in" + destFolder);

}

on the other

{

Alert ("no file found");

}

}

/*********************************************************

getNewName: function to get the new file name. Primary school

name is the same as the source file.

**********************************************************/

function getNewName()

{

var ext docName, newName, saveInFile, Nomdoc;

docName = sourceDoc.name;

ext = "_export.pdf"; new extension for PDF

newName = "";

for (var i = 0; docName [i]! = '. '; i ++)

{

newName += docName [i];

}

newName += ext; complete in PDF file name

Create a file object to save the pdf file

saveInFile = new file (destFolder + ' / ' + NewName);

Return saveInFile;

}

/*********************************************************

getPDFOptions: function to set the PDF save options of the

files using the PDFSaveOptions object.

**********************************************************/

function getPDFOptions()

{

Create the PDFSaveOptions object to set the PDF options

var pdfSaveOpts = new PDFSaveOptions();

Definition of the PDFSaveOptions properties. Please see the JavaScript reference

for a description of these properties.

Add more properties here if you wish

pdfSaveOpts.acrobatLayers = false;

pdfSaveOpts.colorBars = false;

pdfSaveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGHIGH;

pdfSaveOpts.compressArt = true; by default

pdfSaveOpts.embedICCProfile = true;

pdfSaveOpts.enablePlainText = true;

pdfSaveOpts.generateThumbnails = true; by default

pdfSaveOpts.optimization = true;

pdfSaveOpts.pageInformation = false;

pdfSaveOpts.preserveEditability = false;

Return pdfSaveOpts;

}

My problem is really so stupid?

He works only in cs 3?

I noticed that you put in the comment line to select the file type. What happens if you return to the original version that works?

Tags: Illustrator

Similar Questions

  • After you have installed Windows 10 (don't like it) and go back to Windows 7 Home premium, impossible to get the Windows Update to run.

    After the Windows 10 update (don't like it) and go back to Windows 7 Home premium, impossible to get the Windows Update to run.

    Sorry, but KB3153199 has replaced two times at the same time. It takes the new version of the Windows Update client to correct known issues.

    http://support.Microsoft.com/kb/3161608

    Manual installation requires a continuous search to be interrupted. The value of the automatic updates to "never check updates" and then restart Windows.

    Best regards, VZ

  • Windows Update Web site crashes and restores, impossible to get any real updates (XP Pro)

    I recently had a collapse of the system that I was finally able to recover using the "Last known good Configuration" option, which seemed to take me only a few minutes after my initial installation of Windows XP.

    Everything is working smooth now, except for a few hiccups as a result of there being installed yet related programs Windows and trying to work I guess XP think should not be in the State they are currently.  I was hoping that through the Windows Update process causes XP then recognize my (updated) the current versions of Windows Media Player, etc., but there is a problem.  Assuming that my logic is good, that my version of Internet Explorer is not a XP expects to interact with.  I have IE 8.  To after my "Add/Remove Programs" list IE is not yet on my system.

    When I try to go to update.microsoft.com and proceed past the home page there are a lot of Flash and then clicking on and then brings back me to the same page with a small bubble in the tab bar that says "this tab has been recovered.  A problem with this webpage had to close and reopen Internet Explorer tab. »

    Any ideas on how I can get past this?

    Thank you!

    [The WinXP SP2 disc that came with your computer may be named System Recovery but it has nothing to do with the Windows system restore to not mix youself.]

    912812 predates the availability of both IE8 and IE7 so there is no way that IE8 is installed correctly. So if KB912812 was installed on March 13, 2010, the resumption of 'Last good' known Configuration you did (on or just before March 13, 2010) actually had a repair installation.

    Reference:

    How to perform a repair of Windows XP installation, if a later version of Internet Explorer is installed
       http://support.Microsoft.com/kb/917964

    Translation: Since (obviously) not uninstall you IE8 before you've done the repair facility, Windows and IE are now in a situation "confusing." This explains why IE8 is not listed in Add/Remove programs and why you are missing so many updates (including security for IE8 was last updated).

    Your only recourse now is to backup your personal data (which none should be considered 100% reliable at this stage) and then format the HARD drive and do a clean install of Windows.  Please note that another repair facility (upgrade AKA on-site) will not & cannot remedy!

    HOW to do a clean install of Windows XP: see method 1 and http://michaelstevenstech.com/cleanxpinstall.html#steps in http://support.microsoft.com/kb/978307

    Once installed the clean, you will have the equivalent of a "new computer" in order to take care of everything on the next page before connecting the machine to the internet or one local network (i.e. other computers) otherwise and before using a flash drive or the SD card that is not brand new, or has not been freshly formatted:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    Other useful references include:

    HOW to get a computer that is running Windows XP Gold (no Service Pack) fully patched (after a clean install)
    http://groups.Google.com/group/Microsoft.public.windowsupdate/MSG/3f5afa8ed33e121c

    HOW TO get a computer that is running Windows XP SP1 (a) or SP2 fully patched (after a clean install)
    http://groups.Google.com/group/Microsoft.public.WindowsXP.General/MSG/a066ae41add7dd2b

    Tip: After getting the computer fully patched, download/install KB971029 manually: http://support.microsoft.com/kb/971029

    NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free and download/run the appropriate removal tool before installing updates, Service Packs Windows or IE upgrades and before installing your new anti-virus application (which will require WinXP SP3 must be installed).

    Norton Removal Tool
         FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    McAfee Consumer product removal tool
         http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exe

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    Wish I had better news for you. Good luck!

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Impossible to get any application that must be opened with .exe files

    original title: file extension exe

    Cannot get any application that must be opened with .exe files.  This includes all the games. Outlook Express, Microsoft Word and Excel.  Whenever I try to open one of these applications, the computer comes back with a list of available applications and said to ' choose the program the that you want to use to open this file.  None of the work programmes.

    http://www.dougknox.com/xp/tips/xp_easy_file.htm - Restore default associations of files easily
    http://www.dougknox.com/xp/file_assoc.htm - Doug Knox .lnk and .exe association fixes MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Captivate 6: Impossible to get any JavaScript to run when published under the title of SWF

    Version 6.0.1.240

    Windows 7 x 64

    I have a button with a 'Execute JavaScript' action and event failed to get a simple alert("hello"); to work when published under the title of SWF.  I tried to publish with each different versions of Flash Player.  JavaScript works well when it released as HTML5.

    If you want to that JavaScript to manipulate SWF/HTM Captivate content then you need to get your Flash global security settings to approve the location of the output folder:

    http://www.Infosemantics.com.au/Adobe-Captivate-troubleshooting/how-to-set-up-Flash-global - security

  • Impossible to get Dell PC Diagnostics to run

    System details: Dell Inspiron 15R (no touch) less than 3 months; Windows 8, 64-bit; IntelCore i3-3227u 1.90 Ghz, 6 GB ram, 450 GB hd; added to install software: Bitdefender Internet Security 2013, 2013 Office, Chrome (28.0.1500.72 m), Trillian, ICQ, PDF-Viewer, IE 10, Brother printer utilities.

    Problems with a graphics accelerator blue screen and tried to run Dell Diagnostics PC online (by PC-Doctor) to try to diagnose the problem, but cannot enforce. Select the type of scan (have tried all), accept the license agreement, click 'Yes' to run Dell system to detect and BOOM, download super random and vague error: "a problem has been detected, please try again" (extra space before the comma typo Dell).

    Have tried this via Chrome and IE. Have tried this after disabling antivirus and firewall. Nada.

    Any suggestions?

    In case it helps, the original problem is a blue screen in recent weeks, saying something like "Intel graphics accelerator display drivers for Windows 8 (R) stopped responding and has recovered," which freezes the laptop, requiring a hard reboot. It seems to happen pretty regularly now, often when I'm in the middle of working on a Word document with a bunch of open tabs in Chrome and Bitdefender, commercial brother and Trillian running in the background.

    Thank you for any input!

    Try resetting your Internet Explorer settings, also if you install Dell system detects, right click on the .exe file and run as administrator.

  • Tecra A11 - impossible to get the FN keys to run on Win 7

    I had to do a fresh install of Windows 7 on my Tecra A11.

    Everything works fine but I find that I really really miss the ability to activate the trackpad turn off and turn on the wireless and turn off.

    I'm guessing that the only way to do it would be to reinstall this program that connects the FN key for the numbered function keys.

    I don't know what to call it so I don't know what to look for. I want to be careful and not to install more that I need.

    Y at - it program or how I can get this resettled function?

    Thank you

    Susan

    p.s. This forum very well, I found how to turn the touchpad off when a mouse is installed, but if I don't have a mouse attached and it's off, I'm in a mess :)

    Hello

    The FN keys are controlled by VAP (value added package) and the Support of Flash memory card utility.
    Install the VAP first and check if the FN keys work. If it will not work then you should also try the Flash Cards Support utility to get this FN buttons working.
    Flash memory card Support is located in Satellite L500 or other subsequent series

    Welcome them

  • Upgrade Windows 7 blocked to 72 percent will not restart, impossible to get an operating system to run.

    Apparently, this is a common problem, but I can't find a simple solution. There are many out there, but none seems not to work. I run W7 Upgrade Advisor beforehand, and everything was fine. The computer is a HP Core 4, with 8 GB of RAM.

    Hello

     
    Perform the steps suggested by Kevin, in order to solve the problem of restart loop.
     
    Hope that helps.
  • Impossible to get any color hang a flat screen for laptop with vga cable

    When I hang up my flat screen tv to my laptop using a vga cable, colors are disabled

    Hello raijalother,

    Do we not have the latest driver installed for the video card?

    My recommendation would be to download and install the latest version of your driver from the manufacturer of your computer video card.

    Best regards

    Matthew_Ha

  • Impossible to get any OS to install PowerEdge 1750 Server

    I'm having some trouble with that and it makes me nuts. It's the 1st Rackmount Dell I worked on. Other then that I was working on a tower. But the part that I did not do anything with the SCSI hard drives is.

    So maybe someone here can help me. I got a Dell PowerEdge 1750, 2 Maxtor 36 GB SCSI disks in there. The server was using RAID mirror the primary drive before being erased and replaced. So now, the server must be configured with Linux and it does not matter if drivers are reflected in the RAID at all.

    So I tried to install Ubuntu server OS and he repeated to me that it cannot find the drivers for the drives. I tried a few drivers here at DELL who have been to Red Hat and it did not work.

    Then, I tried a copy of Red Hat Linux 8.0 and had the same problem that Ubuntu has given me.

    Then laughing, I tried a copy of Windows XP Home Edition who was sitting by a former Workstation. Same problem, Windows could not find the hard drives. I have download the drivers PERC 4/Di windows server 2000 and 2003 (x 84). Tried loading to see if pilots would allow me to install the OS or not. Never worked.

    Finally try, I popped a copy of Windows Server 2003 R2 Enterprise Edition in and he had the same problem as XP, so I pop the drivers PERC 4/Di and selected the driver for Windows Server 2003 and it has yet to find the hard drives.

    What I am doing wrong?

    NEWS POST:

    Integrated server 1.80 Firmware revision management

    Review from the primary backplane Firmware 1.01

    PowerEdge Expandable RAID Controller BIOS B109 February 18, 2003

    PERC 4/Di Standard FW 4.04

    0 logical drives to the host adapter

    Or logical drives 0 managed by the BIOS

    Broadcom NetXtreme managed by BIOS Boot Agent V7.0.3

    I don't know if this noraml or not, I think that it funny that he finds the 0 logical drives, but when you go into the configuration both appear in there.

    PERC does not support non - RAID JBOD, so if you want mirrored or not, you must configure the drives in the PERC BIOS (CTRL-M)... or put it turns off and only use the system SCSI controller.

    If you want to use as separate readers readers / person, you must configure each disk in a single drive RAID 0.

    If you want to disable RAID and used in SCSI mode only, so you need to start on the configuration of the BIOS (F2), embedded devices, and Embedded RAID SCSI value active.

    The fact that the POST said 0 logical drives found indicates that the disks are not configured - don't forget, readers must be configured in a sort of table before they can be used by the operating system.  So it must show at least a logical drive before installation can never be successful.

    Once the RAID is set up, you will need to worry about drivers.

  • Impossible to get any movement in the monitor window during playback of a clip (PE10); preview image of the clip just shows a white screen. Passed through the analysis of the standard parameters, etc.

    Statistics of the computer:

    OS = Windows 8.1, 64-bit

    RAM = 32 G

    NVIDIA GeForce GTX 760 video card

    Project settings:

    Project Settings.JPG

    Properties file:

    File Properties.JPG

    The files were hi-def videos from YouTube. The statistics for these types of files, directly listed on YouTube are:

    YouTube Stats.JPG

    So where I'm going wrong? I Muvipix.com Steve Grisetti Adobe PE 10 Guide, but there is no discussion of this problem.

    BK

    prman13

    Although the version of the driver NVIDIA GeForce back to may 2013 is necessary and possible for many, users with Windows 8 or 8.1 64-bit machines are out of luck since NVIDIA does not seem to have drivers version old enough for them. The problem has never been defined by Adobe or NVIDIA. And the manifestations of the problem vary in the general theme of "show irregularities."

    Species first Elements 10/NVIDIA GeForce was always specific for first Elements 10. I have not seen all the reports of its appearance in versions 11, 12 or 13. Whether this situation specific or otherwise, better to go on the road to the free trial to determine the compatibility between the program and your computing environment as well as between the program and your goals of editing the video.

    There were several major withdrawals of first 13 items

    1. no more exports flv/f4v

    2 DV and HDV Capture went

    3. no support for Windows XP, Windows Vista and Mac OS x 10.7

    4. withdrawal of VBR, 2 Pass for Bitrate encoding in several choices of export

    to name a few... for more details...

    First Elements ATR troubleshooting: first Elements 13 first look details

    Thanks for your follow-up. Appreciated.

    RTA

  • can not get any file executable exe if connected as administrator, but they will be if connected as a guest?

    original title: not exe administrator

    Have a Dell 9100, Windows xp service pack 3, impossible to get any file executable exe if connected as administrator, but they will when connected as a guest?

    I can't even restore the exe.  During the priming first screen shows that my cd player is not seen (drive D) and does not work when logged in as administrator, but will work when logged in as a guest?

    I suspect that a virus caused this.  I paid AVG version.

    This same problem happened once before a few months before this appearance and then seems to heal itself as the stqrted system works again.

    Hello

    · You receive an error message or error code when you try to run the file?

    · Were there any changes made on the computer before the show?

    · Who is the service pack installed?

    Run the verification and virus scan online if any malware or virus detected on the computer activity. You can run the scan for viruses online from the link below: http://www.microsoft.com/security/scanner/en-us/default.aspx

    NOTE: Make sure that you select the correct version of the operating system before downloading the scanner)

  • When I open Internet explorer in windows and I am trying to use facebook or no matter what games, I get a script error has occurred on this page do you still want to run

    Original title: not admissible error in windows

    When I open Internet explorer in windows and I am trying to use facebook or no matter what games, I get a script error has occurred on this page want to still run and also first message is unacceptable, then the error message how can I fix a script if everything they told me to do, tried of thise disable ad ons, enable ad - ons (what I have now) reinstall it IE upgrade to ie and nothing helped think I need to repair my windows xp professional, but do not have the original disc to do, and nowhere on windows can I find a repair tool.

    Hello

    1. don't you make changes on the computer before this problem?
    2. what version of internet explore do you use?
    3. What is the exact error message?

    Step 1: Check if the problem persists in safe mode with networking and send back the same.

    Step 2: Also, look for error messages in the event viewer. If you find error messages after return the exact error message so that we can help you better.

    Reference:
    Using the event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/snap_event_viewer.mspx?mfr=true

    Understanding of event viewer
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/event_overview_01.mspx?mfr=true

    Procedure to view and manage event logs in Event Viewer in Windows XP
    http://support.Microsoft.com/kb/308427

  • Impossible to get brother printer to run on windows 8 model is MFC 685 - CW... also can't download itunes... Help, please!

    Impossible to get brother printer to run on windows 8 model is MFC 685 - CW... also can't download itunes... Help, please!

    Hi Dominic,

    I understand that you are unable to respond to this thread and created a new thread.

    As restart the print spooler does not solve the problem, please reinstall the printer and then check if that helps.

    Check out the following link to resolve the problem of iTunes.

    http://support.Apple.com/kb/HT3204

    Hope that the information provided is useful.

  • Can any body help to get a script that can generate the sequence (length 3) with a combination of numbers and characters example: T11... TA1... TZ9... then on

    Can any body help to get a script that can generate the sequence (length 3) with a combination of numbers and characters example: T11... TA1... TZ9... then on

    With the help of the clause type

    Select sqnc

    from (select sqnc

    from (select 'T00"sqnc, '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ordr

    of the double

    )

    model

    size of (0 I)

    measures (sqnc, ordr, length (ordr) len)

    rules iterate (1300) until (instr(sqnc[iteration_number],'~')! = 0)

    (sqnc [iteration_number] = case when sqnc [cv (i) - 1] is null

    then sqnc [0]

    of another substr (sqnc [iteration_number - 1], 1, 1) |

    -case when substr (sqnc [iteration_number - 1], 2, 1)<=>

    so when business substr (sqnc [iteration_number - 1], 3, 1)<>

    then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)), 1)

    of another nvl (substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 2, 1)) + 1.1),'~ ')

    end

    end |

    -case when substr (sqnc [iteration_number - 1], 3, 1)<>

    then substr (ordr [0], instr (ordr [0], substr (sqnc [iteration_number - 1], 3, 1)) + 1.1)

    else ' 0'

    end

    end

    )

    )

    where instr(sqnc,'~') = 0

    Concerning

    Etbin

Maybe you are looking for