Illustrator applescript jpeg export options

Mac, Illustrator CS4, Applescript
I need of a jpeg droplet that converts Illustrator files to jpegs. I was able to create one using the Image - Duplicate as JPEG.scpt script that comes with OSX by just adding .AI to the list of files to convert.
The problem is that Image Events was creating jpegs of my Illustrator CS4 files at 150ppi when i need smaller jpegs.
I changed the code to use Illustrator to open and export the jpeg instead of Image Events which does result in a 72ppi jpeg. The problem though is that i cant seem to get any of the jpeg export options to work, it seems like it just exports with default settings.
Id like to change the jpeg compression and id like to export the entire dimensions of the artboard and only the artboard. Artboard Clipping is a property under Jpeg export in the applescript references but it doesnt seem to work so i must be doing something wrong.
Any help would be very much appreciated!
Attached is my applescript.
Thanks
J

OK i changed the code and I think I got it. Instead of setting a myOptions string variable and setting jpeg with myOptions I just typed it in at the export line. I also noticed that the resolution property i put in the options was causing a problem so i took that out.
I attached it for anyone who could use it.
J

Similar Messages

  • JPEG Export options in Javascript

    Hi All,  
    How to export below snapshot setting through idExportJPG type since could not find color model, format, and resolution settings in javascript export options.
    Regards,
    Selvakumar

    Class
    ExportOptionsJPEG
    Options which may be supplied when exporting a document as a JPEG file.
    Class
    Property
    Type
    Access
    Description
    antiAliasing
    bool
    r/w
    Should the resulting image be antialiased. (default: true)
    artBoardClipping
    bool
    r/w
    Should the resulting image be clipped to the artboard. (default: false)
    blurAmount
    number (range: 0.0 - 2.0)
    r/w
    Blur the resulting image this much. (default: 0)
    horizontalScale
    number (range: 0.0 - 776.19)
    r/w
    Horizontal scaling factor. (default: 100)
    matte
    bool
    r/w
    Should the artboard be matted with a color. (default: true)
    matteColor
    RGBColor
    r/w
    The color to use when matting the artboard (default: white)
    optimization
    bool
    r/w
    Should the image be optimized for web viewing. (default: true)
    qualitySetting
    int (range: 0.0 - 100.0)
    r/w
    Quality of resulting image. (default: 30)
    saveAsHTML
    bool
    r/w
    Should the resulting image be saved as HTML. (default: false)
    verticalScale
    number (range: 0.0 - 776.19)
    r/w
    Vertical scaling factor. (default: 100)

  • JPEG exports - "optimize to file size"

    just saw this tucked away in somebody's lengthy post, but i think it merits its own thread.
    it would be very useful, and isnt very difficult, to implement a jpeg export option for auto-setting the quality slider based on "desired file size".
    for instance, my web products need jpegs w/ a max of 800k. in PS, i have to dork around w/ the preview sliders to get this. in LR, there isnt a way. preferred for both would be UI for inputting the desired size and let the cpu do its job.
    this would rock.
    thanks
    matt

    Yes. Generally speaking, would be nice to know the exported file size in terms of MB / KB, in addition to pixel dimensions which are already there.
    Gilles.

  • Why can't I get the advanced selection available in EPUB export options in illustrator CC?  It's just not there.... Neither is the image selection available.  Only Epub reflowable and fixed layout, but not EPUB...

    Why can't I get the advanced selection available in epub export options in illustrator cc? It's not there and neither is image selection.  only epub reflowable and fixed layout but not just epub.. I don't know where it is to do some book exercises for my studies.  Very frustrating.

    This is the EPUB forum: InDesign EPUB

  • JPEG Export: I need browser-independant colors!

    Hello,
    Let me explain my situation: I have a website where I publish my Illustrator documents as exported JPEG files. The website has a certain RGB-color background. And my illustrations have the same RGB-color background. Those two backgrounds have to match perfectly, in order to produce a nice effect. They do match in Firefox 14, but they don't match in Safari 6.
    So, I need my exported JPEG files to have browser-independant colors. I read everything I found on the Internet on this topic, but it's just general stuff about Color profiles and the Edit > Colors... menu and color differences between browsers. NOT A SINGLE TUTORIAL on the whole Internet on how to produce browser-independant JPEG files using Adobe software.
    Currently, I am exporting my Illustrator documents using an AppleScript, in order to save time:
      export docRef to file (myPath) as JPEG with options {quality:60, optimization:true, antialiasing:true, artboard clipping:true, saving as HTML:false}
    but you don't have to give me an AppleScript necessarily. Just give step-by-step instructions on how to do this in Illustrator, and I will automate it myself. Thank you for reading, and I am hoping that you will have a solution!
    P.S. I know that PNGs are browser-independant, but I would prefer JPEGs, because the size is smaller.

    I created a 1px by 1px JPEG for the webpage background, and the colors still didn't match! I thought, maybe Safari 6 is being a smart-***, and is transforming my 1px by 1px JPEG into a solid color: so I created a 2px by 2px JPEG, and I added a small pattern. The colors still didn't match! At this point, I started suspecting it's a bug, since my website displays fine in Safari 5. My illustrations are shown using the CSS code "background: url(...jpg) no-repeat" so I searched for a possible bug in Safari 6 involving backgrounds. I found ONLY ONE PAGE on the whole Internet describing the bug:
    [Pro] Dramatic colour shift with Safari 6 on Mountain Lion
    http://freewaytalk.net/thread/view/114471
    The page says "Exactly the same image changes color depending on whether it’s repeating or not". So I tried replacing "background: url(...jpg) no-repeat" with "repeat", "repeat-x", "repeat-y" and sure enough, the colors match when the background is repeated. To summarize, in Safari 6, there is an obscur bug involving the "background-repeat" property: when this property is set to "no-repeat", a color shift occurs in the image. It has nothing to do with Illustrator or JPEG format.
    Sorry to have wasted your time!

  • JPEG Export

    Hello,
    I have an image in Aperture. I go to export a thumbnail of this image using the standard export dialog.
    With all settings as low as possble and metadata unchecked my 200x300pixel jpeg is 80kb.
    If I export the same image (200x300 pixel) with the webgallery settings the file is 12kb (jpeg medium).
    Could we get this export option added to the normal export presets? I'd love to be able to export the files and retain the filenames (webgallery renames everything).
    For part of my webgallery I would like to be able to create my thumbnails using Aperture but at 80kb a go I am postprocessing with a photoshop script to keep the file size down.
    Cheers for any advice
    Alex
    Gallery : http://www.traceramc.co.uk/aperture/

    I know you can and I've tried this.
    JPEG quality 1, no metadata = 80kb file, and it looks awful!
    The file size is nowhere near as small as the webexport (which is JPEG quality 5) - I suspect this is because the normal export always embeds a thumbnail within the JPEG file - no matter what size it is. I was looking in the plist files to see if there was another flag that could be added but alas no luck - yet.
    _Alex

  • JPEG   var options.... how do I get them?

    CS4-AI  Mac
    I'd like to change the "SaveLayersPNG200dpi.jsx" to export to JPEG. How do I get a list of the export options for jpgs? I looked in the scripting pdf's but I couldn't find it.
    Below is the script, I assume ( I don't know anything about scripting.. actually I know very little about most things : ) that I can replace the "var options" and the document type for JPEG?
    thanks!  j
    var folder = Folder.selectDialog();
    var document = app.activeDocument;
    if(document && folder)
    var options = new ExportOptionsPNG24();
    options.antiAliasing = true;
    options.transparency = false;
    options.artBoardClipping = true;
    options.verticalScale = 138.889;
    options.horizontalScale = 138.889;
    var n = document.layers.length;
    for(var i=0; i<n; ++i)
    hideAllLayers();
    var layer = document.layers[i];
    layer.visible = true;
    var file = new File(folder.fsName+"/"+layer.name+".png");
    document.exportFile(file,ExportType.PNG24,options);
    showAllLayers();
    function hideAllLayers()
    forEach(document.layers, function(layer) {
    layer.visible = false;
    function showAllLayers()
    forEach(document.layers, function(layer) {
    layer.visible = true;
    function forEach(collection, fn)
    var n = collection.length;
    for(var i=0; i<n; ++i)
    fn(collection[i]);

    at this point it will export layers that are locked and/or invisible, I'll need to do some research. It would be nice to incorporate this into the script so that it becomes more similar to choosing selected layer comps in PS.
    thanks for the link to the resources,
    best regards,
    j

  • Adding crop marks in jpeg export

    Hi All,
    Is is possible to add crop marks in jpeg export similar to what we have in pdf export.
    I see SnapshotUtils class but could not see any method to set crop marks.
    What I need to do to set crop marks?
    Regards,
    Alam

    Well, since there is no Crop Marks option when doing a JPEG Export (Snapshot) by hand, I would be very surprised if there were a plug-in API for it.
    So I think you'll have to add your own Crop Marks before you do the JPEG Export. It isn't really that hard ... just a little tedious. You can get the general idea from the CropMarks.jsx script that comes with InDesign.

  • Using Quicktime Export option in a background thread?

    Hi,
    I'd like to use Quicktime Pro's export option to convert some files in background, possible? any sample codes? thanks.
    Angelo

    Hi,
    Take a look at this thread in the Applescript forum for sample code to export files via QT Pro.
    Ed

  • Updated CC to 2014 lost printer export option unless choose non-2014 CC version-any thoughts?

      Hello,
    After updating to new CC 2014 version noticed it opened on my # 1 monitor instead of #2 Cintiq tablet.Upon going to send image to Canon export module through Photoshop,I noticed it was missing(print module).
    Windows program window shows(#1) Adobe Photoshop CC (64 Bit)  and (#2) Adobe Photoshop CC 2014
      I went back to original CC version(#1) and it opened on correct monitors and Canon driver is where it should be.Tried dropping export file into 2014 vers. (#2)but didn't help.
      I have been able to set .tiffs to Photoshop CC(#1) as default,but jpegs will only open on CC 2014 (#2).
    "Original" vers. (#1) shows following in system info;
    Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02/07:23:00:00) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    I hope I don't have to open CC 2014 to use the new tools then open the older version to get to my printer export plug-in.

    I do not know what you mean by printer export option or print module.  I do not have a cintiq Display I have two displays and a Wacom intuos Pro.and have a Epson printer not a cannon printer.  I keep my Photoshop Paletts on my 720P size display and Photoshop main window on my 1080p size display. I run windows 7 Pro. I have no Problem with CC 2014 menu File>Print (Ctrl P).  Look at my 1080P size screen capture. View screen capture in a new tab an scale to actual pixels.  The site scales image poorly. Do you have the correct device drivers installed on you windows 7 system for your printer?

  • Illustrator CS5 arrow exported in svg 1.1

    Hi all,
    it looks to me that an arrow created in Illustrator CS5 and exported in a svg 1.1 file is later recognized as a stroke+triangle (two disconnected objects).
    It just want to make sure that I did not miss anything. The option "preserve Illustrator editing capabilities" is not checked since I want to open the svg file in Inkscape.
    Thank you

    SVG is an exchange file format, not a native file format, so stuff may be expanded when saving into SVG. Not every program treats stuff the same way.

  • JPEG Export - Custom Area

    Hi All,
    I have Indesign cover file where i need to export front cover only as JPEG. As for as manual export option concerned, indesign doesn't have any custom area marking. I will this be possible using javascript?
    Please advise.
    Regards,
    Selvakumar

    Hi Selva,
    Javascript can be done for Exporting the selection content as JPEG.
    It can be handled manually by using the default option (Selection) while exporting as JPEG (as shown in the below screenshot).
    Sorry if I understood your requirement wrongly. Please elabrate your requirement if I am wrong.
    Please revert for further assistance if any.
    Regards
    MANi

  • JPEG export preferences problems

    Hi.
    I have indesig cs5.5 and tryed set export resolution and jpeg color space. But in my computer i can't because this properties don't existe.
    In other computer this script read ok.
    below the JPEG export preferences properties.
    The script
    tell application "Adobe InDesign CS5.5"
              tell JPEG export preferences
                        set JPEG export range to export range
                        set Exporting Spread to false
                        set Page String to "2"
                        set export resolution to 72
                        set jpeg color space to RGB
                        set JPEG Quality to low
              end tell
    end tell
    The properties
    {«class jpEr»:72, JPEG Quality:low, Page String:"2", JPEG export range:export range, JPEG Rendering style:baseline encoding, Exporting Spread:false, parent:application "Adobe InDesign CS5.5", object reference:JPEG export preferences of application "Adobe InDesign CS5.5"}
    Thanks

    What was resolution in CS4 became exportResolution in CS5 (and CS5.5). Is it possible you mapped "Adobe InDesign CS5.5" to a CS4 installation on the machine it doesn't work on?
    Also: I'm not an Applescript expert (or even really competent in it), so I'm probably going to embarrass myself, but... Have you tried copying and pasting the script's contents into a new file on the machine where it doesn't work rather than running the (compiled, or whatever) .scpt file?
    Jeff

  • BUG: LR2.6 export options gone win7

    LR 2.6 64bit under 64bit win7 pro all the export options, like burn to disk, are missing.
    The only export option still there is files to disk

    I have both "Export to DNG" and  "For E-Mail"  in my Lighroom Presets. "Full Size Jpeg" is my own User preset. I'm not sure  the "Export To Disk"
    has ever worked in Lr 2.X. Since exporting to the Pictures Library and using the Windows 7 "burn" function is relatively easy, personally I don't consider it a big deal. I have Windows 7 Home Premium 64 bit.

  • Lightroom JPEG export VS Photoshop Image Processor

    Hey guys:
    Long time photoshop and lightroom user (long time user of all things Adobe). First post here in the forums. I did a search for my question but I think it was too specific, so it returned zero results.
    My question is about Lightroom's JPEG export vs Photoshops Image Processor. When I export a RAW file to JPEG from Lightroom, the file size is freaking huge. The JPEG is as big as my original RAW file (~25mb). Settings are set to default - 100 quality. Everything else remains untouched.
    However, when I use Photoshop's image processor (I launch it through Bridge, easier that way for me) and process the RAW images that way, my JPEGs are roughly 5-10mb in size. Settings in Image Processor are quality 10 and thats it. No actions being run or anything.
    Can anyone shed some light as to why Lightroom exports JPEGs that are roughly 2-4 times the size of Photoshop's JPEGs? My initial thoughts are that the 100 quality setting in Lightroom is more like Photoshop's quality 12 (that always makes me think of Spinal Tap - "Why don't you just make ten louder and make ten be the top number and make that a little louder?" "These go to eleven.") Ideally, exporting out of Lightroom would be much easier for my workflow.
    Thanks in advance.
    -The Doctor

    DrMilesBennell wrote:
    Can anyone shed some light as to why Lightroom exports JPEGs that are roughly 2-4 times the size of Photoshop's JPEGs? My initial thoughts are that the 100 quality setting in Lightroom is more like Photoshop's quality 12 (that always makes me think of Spinal Tap - "Why don't you just make ten louder and make ten be the top number and make that a little louder?" "These go to eleven.") Ideally, exporting out of Lightroom would be much easier for my workflow.
    You are correct: LR Quality 100 = PS Quality 12
    Despite LR having 101 Quality settings (0 to 100) it actually only has 12 Quality settings the same as PS 'Baseline Standard':
    JPEG Quality Setting Comparison
    PS
    LR
    LR Range
    Typical Reduction
    0
    0
    0-7%
    11%
    1
    10
    8-15%
    23%
    2
    20
    16-23%
    14%
    3
    30
    24-30%
    14%
    4
    35
    31-38%
    16%
    5
    40
    39-46%
    24%
    6
    50
    47-53%
    4%
    7
    55
    54-61%
    27%
    8
    65
    62-69%
    25%
    9
    70
    70-76%
    31%
    10
    80
    77-84%
    35%
    11
    90
    85-92%
    41%
    12
    100
    93-100%
    I keep a small copy of the above table taped to my monitor. I chose the numbers under the 'LR' column for the 12 steps (not AA's) to make it easier to remember. In actuality ANY number in the LR Range column will produce the same results for each step.
    Under the 'Typical Reduction' column notice the small amount of reduction for PS 6 (LR 47-53%) Quality setting. If interested why AND why you probably shouldn't use PS 7 (LR 54-61%) Quality setting see this post:
    http://forums.adobe.com/message/5641903#5641903

Maybe you are looking for

  • Hi doc.print() is not working in iis 7 and windows 7 when my site hosted..

    PrintVisitorEntry() { PrintDocument doc = new PrintDocument(); doc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(Visitor_Print); doc.Print(); void Visitor_Print(object sender, System.Drawing.Printing.PrintPageEventArgs e) DataTable d

  • Mail Stationery options

    Is there anywhere else to get new stationery for mail? The options are so limited and boring after awhile. Especially looking for Holiday Sentiments

  • Start page is wrong

    after and up date firefox iin now checking for add-on compatibility then comes to and annoying "your firefox is up to date" every time!

  • Wi-Fi Sync Not Working

    I have an iPhone 4, iPad (original), iPad 3, and iPhone 5, and none of these are showing up in iTunes to sync wirelessly. All are on the latest iOS and iTunes is version 10.7.0.21. I have read various threads here with the same complaints(links liste

  • Can you update too much for an older Mac?

    I have the original Intel iMac, 2 GHz Intel Core Duo.  It is plodding along ok. I am using OSX 10.5.8.  I am wondering if I can update to Snow Leopard or Lion?  I know sometimes you can update too much on an older machine and it will run slowly.  I h