Change Illustrator version with scripting?

Hello!
I go through several dozen files a day at work and we have to save down everything to 9 as we go.
Actions don't seem to delve that deep into the save as promt, so how can I script this so that the default goes to Version Illustrator 9 everytime?
I'm looking to do a similar script while exporting my format as default jpeg instead of png.
Help anyone on where to point me?  I'm familiar with the basics of scripting.  It's been a while but I need a starting point on if this is even possible.
Thanks!

I found the Applescript from Larry G. Schneider to be a great solution . . . ALMOST.  Seems like Adobe has abandoned the info Finder uses, the "file type." So I added another few lines that ALSO recognize files whose "kind" is "Adobe Illustrator Document."
Here's the code. (NOTE: This version is suited to my prefs, which is to resave as CS4. For your purposes, you would simple edit the script, changing "compatibility:Illustrator 14" to "compatibility:Illustrator 9" .)
-- BEGIN CODE:
set fileTypes to {"EPSF", "PDF ", "ART5", "TEXT"} -- file types available to resave as Illustrator
-- get a sourceFolder that holds the files to resave as AI
set sourceFolder to (choose folder with prompt "Choose a folder with files to resave as Illustrator CS4:") as text
-- get a list of files of the defined type in the sourceFolder
tell application "Finder" to set workingFiles to (every file of folder sourceFolder whose file type is in fileTypes) as alias list
-- now you have your fileList argument
-- look again, getting AI docs whose "file type" is missing (due, presumably, to CS file format changes):
tell application "Finder" to set moreFiles to (every file of folder sourceFolder whose kind is "Adobe Illustrator Document") as alias list
set workingFiles to workingFiles & moreFiles
-- get a destinationFolder to hold the new files
set destinationFolder to choose folder with prompt "Choose a folder to hold the Illustrator files:"
SaveFilesAsIllustrator14(workingFiles, destinationFolder)
on SaveFilesAsIllustrator14(fileList, destinationFolder)
set destinationPath to destinationFolder as string
repeat with aFile in fileList
tell application "Finder"
set fileName to displayed name of aFile -- get displayed name
set AppleScript's text item delimiters to "."
set newFileName to text item 1 of fileName
set newFilePath to destinationPath & newFileName & ".ai"
end tell
tell application "Adobe Illustrator"
open aFile forcing CMYK with options {update legacy text:true}
-- amend the "compatibility:" value to your preference (which might be followed up by amending some of the above lines, esp. the prompt in line 4):
compatibility (Illustrator 10/Illustrator 11/Illustrator 12/Illustrator 13/Illustrator 14/Illustrator 3/Illustrator 8/Illustrator 9/Japanese 3) : what Illustrator file format version to create ( default: Illustrator 14 )
save current document in file newFilePath as Illustrator with options {class:Illustrator save options, compatibility:Illustrator 14, embed linked files:true, font subset threshold:0.0}
close current document saving no
end tell
end repeat
end SaveFilesAsIllustrator14
-- END CODE

Similar Messages

  • Quick Save as Versions with Script?

    I'm looking to modify a script I found online but unfortunately I don't know enough Javascript to figure it out.
    Here's the original code from this blog post:
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
      var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {
      var basename = docName.match(/(.*)\.[^\.]+$/)[1]
    } else {
      var basename = docName
      //getting the location, if unsaved save to desktop;
    try {
      var docPath = thedoc.path
    } catch (e) {
      var docPath = "~/Desktop"
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 9;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    var filename = docPath + '/' + basename + "-" + getTime() + '.jpg';
      thedoc.saveAs((new File(filename)), jpegOptions, true);
    function getTime(){
    var currentTime = new Date();
      //Make single-digit mins show up as 6:01 and not 6:1
    var minutes = currentTime.getMinutes();
    if (minutes < 10) {
      minutes = "0" + minutes;
      var timeStamp = currentTime.getFullYear() + "-"
         + (currentTime.getMonth() + 1) + "-"
         + currentTime.getDate() + "-"
         + currentTime.getHours() + "."
         + minutes + "."
         + currentTime.getSeconds() + "."
         + currentTime.getMilliseconds();
    return timeStamp;
    What I'm trying to do is instead of saving with a timestamp, I'd rather have the script automatically detect the most recent version (eg: MyPicture_04.jpg) and save as the next logical increment (eg: MyPicture_05.jpg)
    Anyone know how I'd be able to go about scripting that?
    Thanks!

    Hey, thanks for your help.
    When I loaded your script it would revoke some of the naming of my original file, but with some tinkering I got it to work, but there are still some problems. One is it only saves one copy and then it'll just overwrite it...and the other is that when I'm creating the first save, my file comes out as 3LINE_V2_02a_NaN.jpg (bold is the part the script creates, the rest is my filename) and then after that it'll just overwrite it. Here's the script I have atm:
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
      var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {
      var basename = docName.match(/(.*)\.[^\.]+$/)[1]
    } else {
      var basename = docName
      if (docName.indexOf(".") != -1) {
       var basename = docName.match(/(.*)\.[^\.]+$/)[1]
      } else {
       var basename = docName
      var baseArray = basename.split("_")
      var imgNumStr = baseArray[baseArray.length-1]
      var replaceNum = Number (imgNumStr) + 1000000001
      var replaceStr = replaceNum.toString().substr (replaceNum.toString().length-imgNumStr.toString().length, imgNumStr.toString().length)
      var nameBeg = basename.substr(0,basename.length-replaceStr.length)
      if(Number (replaceStr)==0)
      {replaceStr = replaceNum.toString().substr (replaceNum.toString().length-imgNumStr.toString().length-1, imgNumStr.toString().length+1)}
      //getting the location, if unsaved save to desktop;
    try {
      var docPath = thedoc.path
    } catch (e) {
      var docPath = "~/Desktop"
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 10;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    var filename = docPath + '/' + basename + "_" + replaceStr + '.jpg';
      thedoc.saveAs((new File(filename)), jpegOptions, true);
    function getTime(){
    var currentTime = new Date();
      //Make single-digit mins show up as 6:01 and not 6:1
    var minutes = currentTime.getMinutes();
    if (minutes < 10) {
      minutes = "0" + minutes;
      //Make single-digit hours show up as 06:01 and not 6:1
    var hours = currentTime.getHours();
    if (hours < 10) {
      hours = "0" + hours;
      var timeStamp = currentTime.getFullYear() + "_"
         + (currentTime.getMonth() + 1) + "_"
         + currentTime.getDate() + "_"
         + currentTime.getHours() + "_"
         + minutes + "_"
         + currentTime.getSeconds()
    return timeStamp;

  • How to change a parameter with script

    Hi to All,
    Is it possible change to TRUE the Parameter "07_DICTIONARY_ACCESSIBILITY" with a script ?
    If Yes, how can perform this ?
    Thank You and Best Regards.
    Gaetano

    About 07_DICTIONARY_ACCESSIBILITY

  • Change stage dimensions with script

    Is there a way to change the stage dimesions with a script
    please? Relates to another post below which I can't figure
    out.

    stage width & height properties are read only, you cant
    change the stage size by using actionscript.
    if you are displaying an swf object on a webpage, you may
    consider to change the swf object width & height parameters
    using javascript, & make sure your scaleMode is showAll.
    good luck

  • How can i change brush type with script?

    I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

    Never mind. I managed to do it, script listener did produce the code, i just didnt find it at first. I meant brush style by type.

  • If i have a file that i created with an older Illustrator version, will it still open on the latest Illustrator?

    If i have a file that i created with an older Illustrator version, will it still open on the latest Illustrator?

    favela,
    It will, but there may be certain changes, which may be profound, especially live Type, depending on the version and thereby how many times the text engine has been changed.
    The proof of the pudding is the eating. You may download a CC trial here:
    http://www.adobe.com/downloads.html?promoid=JZEFS

  • Problem with Script Debugger Trial Version 4.5

    Hi,
    I recently downloaded the trial version of Late Night Software's Script Debugger and used it to debug a script I had created in Apple's Script Editor. Now, whenever I have a script in the Apple editor and I hit the run button, Script Debugger launches. If I don't click the trial button, but instead quit Script Debugger, the window with my script in Script Editor freezes, and I have to force quit from Script Editor. So basically Script Debugger has hijacked all my Applescripts. When I go into the info window and change the open with to Script Editor, it still doesn't work. I also notice that Script Debugger is listed with "(default)" next to its name, and also the "Use this application to open all documents like this." is now grayed out.
    Has anyone had this happen to them and have you found a solution?
    I've sent Late Night Software an email message, and I've also called their toll free number in Canada. But unless anyone's had experience with this and has a solution, I would strongly suggest that you avoid downloading their software.
    Message was edited by: Zoar

    Hi Simon,
    Thanks for the advice. I did try that, and initially the "Enable Debugging" was grayed out, so I thought I was sunk. But I may have been doing it with the script still in Script Editor. However, I did what you said, and it appears your suggestion has done the trick.
    Regards,
    Zoar

  • Change Page size with a Script

    I have made artwork in Illustrator that is set up as two page spreads on 1 artboard.
    I need to convert this to single page spreads.
    I.e. So for half the documents, I need to set the anchor point of the document to top left and half the width of the artboard.
    For the other half of the documents, I need to set anchor point to to right and half the width.
    Is this possible with scripting?
    I have look around online to find ways of accessing the document size and anchor point via scripting, but cannot seem to find any resources.
    Thanks for any help that can be offered.
    Edit: Also is it possible to create a new artboard with a script and assign it a name?

    here you go, this script splits the artboard in two
    // carlos canto
    // http://forums.adobe.com/message/5380624#5380624
    var idoc = app.activeDocument;
    var ab = idoc.artboards[0];
    var abBounds = ab.artboardRect;// left, top, right, bottom
    var ableft = abBounds[0]; // 0
    var abtop = abBounds[1]; // 612
    var abright = abBounds[2];
    var abbottom = abBounds[3];
    var abwidth = abright - ableft; // 792 // width
    var abheight = abtop- abbottom; // 0 // height
    var half = ableft + abwidth/2;
    var abright2 = half;
    ab.artboardRect = [ableft, abtop, abright2, abbottom];
    var ableft2 = half;
    var newAB = idoc.artboards.add([ableft2, abtop, abright, abbottom]);

  • Open multi page pdf specific page in Illustrator CS4 with apple script

    I need to open multi page pdf specific page in Illustrator CS4 with apple script. Is it something like this:
    activate  (open file theTargetFolder as PDF with options …).
    Thank you.

    Carlos,
    Muchas Gracias por tu colaboración y excelente script, el que se abra el ESTK no tiene mayor importancia.
    El caso es que Adobe recomienda encarecidamente NO utilizar Illustrator para editar PDFs, por diversas razones, aunque cuando no hay otro remedio o herramienta disponible, o conocida ...
    Para llegar aquí, aparte de San Google, hay que ir a Adobe.es (en mi caso), pestaña de Ayuda,  ..... (hasta aqui bien),
    luego hay que bajar hasta el final y ver Comunidad y Foros...... (esto puede ser)
    al pulsar aparacen un montón de foros se supone de programas pero en inglés,
    y la última línea es de International Forums,  ya casi hemos llegado)
    pulsamos entonces, y por fin se abren cuatro palabras con idiomas, en una dice: español      (casi no me lo puede creer)
    pincho y llego por fin aquí.
    Muy poca gente sabe de la existencia de este pequeño refugio, si a esta dificultad añadimos la peculiar forma de ser de la gente, ....

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • Color change between Illustrator versions

    When I'm opening an Illustrator cs file for a while back in Illustrator cs5, the colors change. When I try to open the cs file (eps) in Photoshop cs5, the colors change too. What setting am I missing? The document color mode is set on cmyk. Is it something inside of color settings? Thank you

    Ok... let me be more specific, sorry for the confusion. Here is exactly what's going on...
    Another designer is working in Illustrator CS and has created a logo that they provide to me in ai, eps, jpg, tif, png and gif. The jpg, tif, png and gif have been output from the eps file by opening the eps file in Photoshop and saving in the desired format. All these files have the same color.
    The issue is when I receive them and I want to either simply open the ai or eps in Illustrator CS5 (or CS3), or open the eps in Photoshop CS5 (or CS3) so I can save a big high res jpg for example, the color are lighter and not the same as the jpg provided from them. So I'm unable to create any files (jpg, gif, tif...) from the eps to match what was created before. Does that make sense?
    I have established that the other designer uses Illustrator CS and CMYK is selected for the 'document color mode' in Illustrator. When I work in Illustrator CS5 CMYK is also selected.
    When I have opened other eps files from the same Illustrator version, and looked at the files that were output from them, the colors are all the same, but in this case it is not. I'm wondering if I'm missing a setting somewhere or if this will always happen if you open an Illustrator CS eps inside Illustrator CS5.

  • PE 10 TRIAL: all clips inserted get changed to "created with PE 10 trial version"

    Installed PE 10 trial version.  when I add clips, immediatly they get changed to " created with Adobe Premier Elements trial version".  It happens all the time.  Inserting one two or any number of clips, they all get changed to "created with Adobe Premier Elements trial version". I can save the project and when I open it up it's the same results.  Any ideas as to what to try to solve this problem?

    >clips are from a canon powershot a710 camera
    Video from a still camera will "often" use the MJPEG (Motion JPEG) codec... but, read on...
    Read Bill Hunt on a file type as WRAPPER http://forums.adobe.com/thread/440037
    What is a CODEC... a Primer http://forums.adobe.com/thread/546811
    What CODEC is INSIDE that file? http://forums.adobe.com/thread/440037
    Report back with the codec details of your file, use the programs below... a screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30
    For PC http://mediainfo.sourceforge.net/en or http://www.headbands.com/gspot/
    And... more on learning the program
    Importing Video http://forums.adobe.com/thread/1065281
    Saving & Sharing http://forums.adobe.com/thread/1051093
    -v10 http://www.amazon.com/Muvipix-com-Guide-Premiere-Elements-Version/dp/1466286377/
    -and http://forums.adobe.com/thread/498626
    -and http://prodesigntools.com/four-hours-free-video-tutorials-new-photoshop-elements-9-pse9.ht ml
    -and http://prodesigntools.com/five-hours-free-tutorials-photoshop-and-premiere-elements-7-and- 8.html
    FAQ http://forums.adobe.com/community/premiere_elements/premiere_elements_faq
    TIPS http://forums.adobe.com/community/premiere_elements/premiere_elements_tips
    Another help site http://muvipix.com/ or http://muvipix.com/phpBB3/
    User Guide PDF http://help.adobe.com/en_US/premiereelements/using/index.html
    Right click PDF link in the upper right corner and select to save to your hard drive

  • Hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    hello am using ios 7.0.4 I have a question about messages that it does not show the time of a particular message after first message that I recive form a paricular person so please in the next version change this and with every message show time and date

    Hi,
    How is everything going? Have you checked this issue from OWA? If so, please let me know the result.
    In adition, please also try to use the following powershell commands to check if the assistant has right permissions:
    Get-MailboxFolderPermission -Identity
    CEO’s email address:\Calendar -User assistant’s email address
    Also check with:
    Get-Mailbox -Identity CEO’s mailbox
    | fl *GrantSendOnBehalfTo
    Please let me know the result.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Which version of Illustrator works with Windows XP?

    Which version of Illustrator works with Windows XP?

    Should be up from about 10 (since it was introduced at the same time up to CS6
    http://helpx.adobe.com/de/x-productkb/policy-pricing/system-requirements-illustrator.html

  • Adobe Illustrator works with this version.

    " Verify with the developpeur that Adobe Illustrator works with this version of OS X "
    How may I remedier has that? Thank you

    Well, what version of OSX? What Mac? What version of AI?
    Mylenium

Maybe you are looking for

  • How do I set up a .pdf form to save filled data without having to print the form?

    How do I set up a .pdf form to save filled data without having to print the form?  I have provided my clients a lifecycle .pdf form they can use to record data for unique client meetings.  They want the ability to save their completed data whenever t

  • Best solution to sync photo libraries between two macs?

    I'm trying to help my father in law who has a new iMac, MacBook Pro, and dot mac/mobile me account. He wants the iPhoto library to be in sync on each machine. If he adds a new photo to one machine, he would like to see it on the other, and have his i

  • Problem with RFC adapter (JCO Exception RFC logon failure)

    Hi , I have SOAP to RFC scenario. Scenario with same configuration (RFC adapter) is working in QA system.but when I have transported to PRODUCTION system it is showing com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has stati

  • New or old Mac Pro specs for $4-5000

    So the new MacPro's are almost ready to drop and I can get a new box at long last. Unfortunately the options are a bit dizzying, so I'm hoping for some guidance. Me: pro photographer - shoot 100% RAW files, 21 MP camera. Current image library over 25

  • Puppet / Chef with EBS ?

    We are looking to using Chef / Puppet (configuration management tools) in EBS lifecycle activities (provisioning, cloning, backup, recovery etc) - having searched Google and MOS, there seems to be very little information on this subject. Is anybody u