No announcement yet.

save as tif in vbscript?

  • Filter
  • Time
  • Show
Clear All
new posts

  • save as tif in vbscript?


    I'm trying to get a VBscript put together that will open a file (dcr), rotate it, and then save it as a tiff file. I haven't been able to find a command in VBscript to save the file in tiff format.

    I can't imagine it can't be done - Adobe even provides an AppleScript that saves as a Tiff - but I'm at a loss on how to do it with VBscript and Adobe choose not to offer an example.

    Any suggestions?

    Thanks -Steve

  • #2
    Hi Steve:

    In addition to any replies you get here at RetouchPRO (sorry I can't help you on this specific issue), here's a site you might want to bookmark if you're not aware of it: the Adobe Photoshop Scripting forum. A number of real sharp programmer-type folks hang out there:

    Adobe Scripting Forum

    Welcome to RetouchPRO. Hope this helps.



    • #3
      The "SaveAs" method allows "ExtensionType as Variant" as a parameter. How this works, I have no idea, but I suspect its a possible solution.
      Learn by teaching
      Take responsibility for learning


      • #4
        why not do it in javascript since it's cross platform?

        //         TIFF          //
        //TIFF File Save Options
        var saveTIFF= new TiffSaveOptions();
        saveTIFF.alphaChannels = false;
        saveTIFF.annotations = false;
        // Options: IBM, MACOS (default is based on OS)
        saveTIFF.byteOrder = ByteOrder.MACOS
        saveTIFF.embedColorProfile = false;
        // Options: NONE, JPEG, TIFFLZW, TIFFZIP
        saveTIFF.imageCompression = TIFFEncoding.NONE;
        // Only valid for imageCompression.JPEG encoded TIFF Documents ( value of 0 - 12 )
        saveTIFF.jpegQuality = 12
        // Options: ZIP, RLE should only be used when you are saving layers
        saveTIFF.layerCompression = LayerCompression.ZIP
        saveTIFF.layers = true;
        saveTIFF.saveImagePyramid = false;
        saveTIFF.spotColors = false;
        saveTIFF.transparency = false;
        activeDocument.saveAs(new File(outputFolder + "/" +,-4) + ".tiff"), saveTIFF);


        Related Topics


        • Carol Heath
          Unable to save file as jpeg? Totally baffled
          by Carol Heath
          Hi everyone.

          I am hoping that someone can offer some suggestions. I have finished a restoration and, as always, I have created a lower res, watermarked copy to email to my client for approval. For some reason however, Photoshop (CS2) will not allow me to save the file as a jpeg. The...
          01-18-2010, 06:04 PM
        • dungbeetle
          Driving me crazy! (about file extensions)
          by dungbeetle
          Hi everyone.

          I've tried everything I can think of to solve this one, but still no luck.

          I don't know if it's just my machine and/or my installation, but Photoshop 7 (I've tried the original and v 7.0.1) insists on adding a .psd extension to the file every time I try to...
          08-06-2005, 01:02 PM
        • Rex
          Saving jpg
          by Rex
          Hi there,

          I use PhotoShop CS3 and usually work with 100mb, 16 bit RGB scanned files, saved as tif. I'm also using XP Pro, sp3.

          I want to create some canvas prints for Christmas gifts and the web based printers need 8bit, sRGB, jpg files. No problems there. Assign a new...
          12-10-2012, 06:36 AM
        • BBE
          Saving jpg in Elements 5
          by BBE
          I am new to Elements 5 and this forum so hope that someone can help please. If I open an RAW file (Nikon .NEF) everything works well until I want to save the finished result as a .jpg file. "Save as" gives me a list of extensions but not JPEG i.e. *.jpg. It does give me the option of JPEG...
          05-08-2007, 11:55 AM
        • kkamin
          What is a 'plain vanilla .TIFF' file?
          by kkamin
          That's it.
          06-26-2010, 02:17 AM