Script to open eps and save to jpg

Hi,
I would need a script to open an eps or ai file at 100dpi, rgb, with the longest side of 500 px.
It would save the jpg at amximum quality with the same name  +  .jpg
then close the eps file without saving it.
I wanted tyo create an action for this but I cant figure how to create the jpg file with it's longest side to 500 pixels.
Jean

When you record your action use Fit Image to resize the document. Enter 500 in both width and height, that way the longest side will be 500. Fit Image will keep the image ratio.

Similar Messages

  • How to tell script colse all files and save, but no untitle docs

    Hi everyone 
    I want to colse the open files and save them but no those files which have never been saved.
    I try this script but after ran, all the files are no be saved.
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                     if(app.activeDocument.saved == false){
                           docs[i].close(SaveOptions.NO);
                     else if(docs[i].close(SaveOptions.YES));
    can someone tell me what's wrong with the script?
    thanks
    Regard
    Teetan

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        else {
            docs[i].close(SaveOptions.YES);

  • Track New, Open, Close and Save Recording Info.

    Hi,
    New to the Photoshop SDK and as such would appreciate a push in the right direction
    I need i way to track New, Open, Close and Save commands and record document name and ID.
    Anyone have some sample code showing this?
    Kind Regards
    Flemming

    Thanks for pointing me in the right direction!
    It's fine in almost any situations, except one.
    When working on a new document and the user chooses to save, but in another format than psd, let's say a jpg file.
    Photoshop of cause saves it as a copy and then there is no way to detect the full path and name of that file.
    At least not in any way I can see.
    Any help would be greatly appreciated!

  • How to open, edit, and save XML

    I hav a problem in creating jsp file that can open, edit, and save xml!Anyone can help me?!!!

    Use a bean to do the job. pass the required params to the bean.

  • Close ALL open files and save jpg with jpg option

    Hi,
    I have some (a lot) of -jpg images to crop, and resize, while I have to do this one by one based on what portion of the image to crop, once done I need to close, and save them.
    To speed up the process I open several files, and do the crop&resize, and when finished I use "close all", and would like to avoid to confirm the "save" dialogue, and the "jpeg options" "image quality option" dialogue, having to say save, and the option set to a given value.
    Unfortunatelly I am not a coder, and didn't understand anything from the Javascript Scripting Reference guide.
    I found this
    app.docRef.close(SaveOptions.SAVECHANGES);
    here, I pasted it into ExtendScript, saved it, but when opening the script from file > scripts > browse it returns error 21 (undefined is not an object)
    Will you please kindly give me the script?
    Thank you

    Add this snippet to a script file.
    Load script file in PS scripts folder
    Restart photoshop
    Assign keyboard shortcut to script
    #target photoshop
    //Make Photoshop the formost Appplication
    app.bringToFront();
    // Requires at least one open document
    while (app.documents.length > 0)
         //Save all open windows
        {activeDocument.close(SaveOptions.SAVECHANGES);}

  • Script inquiry (help please :) - Crop PDF and save as JPG

    I'm sure this will be an easy one for some of you. I want to have a script that takes a PDF of a cover file (usually very wide since it's printed along the front, spine, and back of the book), crops out the crop marks (I have a little code snippet that I found that can do this), prompts for the width of the front cover size (i.e. 6 inches for a 6" x 9" book), and then sets the crop box from the far right edge to the width that was input. I'm trying to put together a little tool for my company's Art Department to save them time creating jpegs of our books covers (there are a lot of them). Their current process is to place the PDF in Indesign on a 6x9 page and export a JPG from there, seems time consuming.
    As an example, a cover file for one of our books, without the trim marks, is 12.625" by 9". The script would prompt a user for the width of the cover, they would input 6" and it would, ideally, set the crop box to be 6" wide and 9" high (not touching the height, since that is already correct), and then save that cropped PDF as a JPG (and not save the cropped PDF so as to leave it untouched after the process is done), preferably with an option to select the output location and even batch run it on a bunch of PDF cover files.
    I'm sure this is possible, does anyone think it will be particularly easy? I don't have a lot of experience but I'm not necessarily looking for a handout since I'm not really bringing a whole lot to the table (but will take one!). Any help or pointers appreciated, or maybe someone who already has something like this could provide some help or resources to get started, even If I have to piece it together from a series of helpful URLs.
    Thanks in advance for any helpful responses I'm anticipating!
    Nick

    Take a look at these two Acrobat JavaScript methods:
    Doc.setPageBoxes():
    http://help.adobe.com/livedocs/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat11…
    This function allows you to set the crop box. When you combine this with Doc.getPageBox(), you can then adjust the crop box to e.g. the 6" area you want.
    Doc.saveAs():
    http://help.adobe.com/livedocs/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat11_HTMLHelp&file=JS_API_AcroJS.89.530.html
    As you can see, the cConvID parameter allows you to specify the output format - and JPEG is an option.

  • Can't set a batch automation to open .CR2 files & save as .jpg

    My Canon saves as CR2 - I have a whole bunch of pics taken in this format and want to save as jpg's only (delete teh CR2's to save space). I'm not sure it'l work as when you open a CR2 you don't get the Actions window. How can I automate a batch to do this?
    Thx

    Use the Image Processor—or, better yet, the free Dr. Brown's Services, by the same author as the Image Processor, but on steroids.

  • Get image from Excel as shape and Save as .jpg

    Hello,
       I'm fairly new to ActiveX and am having a hard time doing a seemingly simple thing: getting a named image from an Excel file and saving it as a .jpg.  I have seen similar things done for Excel chart objects, but as I understand it images are "shapes" in Excel and I've been unable to find the right method to extract a shape. Please, if anyone could take a look at the attached folder and tell me if I am on the right track, if there is a better way to do this, or if there is a way to do this at all, it would be helpful.  Note that I don't care how efficient a strategy is developed - if I need to save to an intermediate file of another type, that's fine. The only goal is to be able to extract this image and save it with one mouse-click and no manual intervention.
    Folder contains: 1 example Excel file containing the image named "Picture 1"; 1 vi showing the method I've found for exporting Excel charts as .jpg's; and 1 vi with the progress I have made so far trying to pick the image from the Excel file and save it as a .jpg.  
    Thanks in advance!
    Megan
    Solved!
    Go to Solution.
    Attachments:
    GetExcelPicture.zip ‏70 KB

    Hi megan,
    see this link.
    Hope it helps.
    Mike

  • Open write and save a txt file

    i'm trying make a vi to open and write in a txt file
    my level of LabView is very basic and, i'm looking for help for open (or create) a txt file in a specfication folder, write a value and save this file in a another folder

    you are not closing the the file in use, that is why you get the messege and your string format....
    Spoiler (Highlight to read)
    Spoiler (Highlight to read)
    Attachments:
    vti[1].vi ‏11 KB

  • Best program to open, edit, and save back to MS Word document?

    What is the best app to open a MS Word doc, edit it and save as a Word doc .?

    Documents Free
    https://itunes.apple.com/us/app/documents-free-mobile-office/id306273816?mt=8
    Officer 365 is only available for the iphone at this time

  • Open as .JPG and save as .JPG?

    Hello everyone!
    I were just wondering if there was a way I could save them as .JPG as I did with .PSD? Because when I do save with the .PSD file, it saves without have to chose name, etc., will that be possible on the .JPG files?  I open them as a .JPG picture, and puts in a .PNG file, but thats maybe why? Please, I could really need this..
    Program and System:
    Adobe Photoshop CS6 Extended
    Macintosh

    Haha, somehow I found out how.

  • What adobe program can open, edit and save eps vector files?

    I have an engraver that accepts only eps vector drawings.  I need a program that can open zipped eps files so I can view, edit and print those drawings.  I need to leave them as eps drawings to use with my machine.
    Thanks
    Joe

    Hello!
    Illustrator is an Adobe product that primarily deals with all of the above! If you click the blue link, it will show you all the features and capabilities of this product.
    Here is a little insight on the product dealing with vector files:
    -janelle

  • How do I open and save a jpg attachment from mail?

    I received an email that has a jpg photo. This photo is an attachment. In my Inmail there is a paper clip next to the name of the person who sent the email. I want to be able to copy the jpg photo and put it someplace else. Is there any way this can be done? I am new to all of this.

    Try holding down the jpeg picture for a second or two, an option to copy or save should appear.

  • Script to Open XLSX, then Save as HTM

    Hello, I'm a bit new to scripting. We have a spreadsheet where we keep inventory. It is Excel 2010 (.xlsx). We also have an internal (IT) "info" web where I would like to be able to click a link to open an HTML version of the same spreadsheet.
    I've already done this and it works fine. What I want to do now is create a script I can schedule to run each night that will open the XLSX, then simply save it in another location as HTM (in my inetpub folder). I have successfully done this but I've run into
    a problem and I believe it has to do with the FileFormat. It saves a 1kb htm file plus it doesn't save the updated worksheets. So what I end up with when I open the saved HTM file is one line of text at the top of the page. I would appreciate it very much
    is one of you scripting gurus can take a look at my script below and tell me what I am missing or correct what I have for me. Thank you in advance!!
    dim ObjExcel
    Set objExcel = CreateObject("Excel.Application")
    Set objWorkbook = objExcel.Workbooks.Open( "Y:\IT-Inventory-Master2.xlsx")
    objexcel.Visible=TRUE
    objExcel.DisplayAlerts=False
    WScript.Sleep 3000
    objExcel.Save( "C:\Inetpub\wwwroot\Inventory\IT-Inventory-Master.htm")
    objExcel.Application.Quit
    WScript.Echo "Finished."
    WScript.Quit

    So let's change the colr to something more interesting - How about British Racing Green?
    ¯\_(ツ)_/¯
    The brandings can still be used to mess with colors. Here's a fun one:
    Red
    Purple
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Serious problems in Illustrator CC with OSX Mavericks: Open, Place and Save windows don't stay open

    I just upgraded to OSX Mavericks. After that, Illustrator started acting up. When I try to save or open a file, or place an image, the command window opens just for a second or two then closes right away. Even the Save shortcut doesn't work. I've saved the file a few times using Command-S, when I was closing it I got a warning that I had to save it. Of course, I couldn't save it using Save As or Save commands because their windows wouldn't stay open, so I had to just close it. When I opened it again, it was an older version; Illustrator just ignored my last two or three saves.
    I tried restarting the computer and relaunching Illustrator, nothing worked. The problem was worse when I have InDesign open too. But just quitting InDesign didn’t always work. This morning, I had to quit and relaunch both InDesign and Illustrator a few times before the problem temporarily disappeared.
    I think it might also be worth mentioning that I use Apple Trackpad, and my computer is brand new.
    Is anyone else having similar problems? Any help is appreciated.

    Thanks. But I always have the List View.
    One lame thing worked though. I would hit the command short cut and keep hitting it for a few times. This forces the command window to stay open, and it actually helps getting ridding of the problem temporarily.
    I also had a similar but nastier problem in Acrobat. I tried to save a Photoshop PDF file in Acrobat, the Save As window opened and closed right away. Then all the command menus went gray; non of the commands was available including Quit. The only option I had was to force quit Acrobat. However, I didn't have this problem when handling native Acrobat files. The good news is that my lame solution worked.

Maybe you are looking for