CS4: get file name after saving for web

10-11  Source: Network gathering  Views:0 

Advertisement
Hello,
I am saving a file via "save for web" with a specific file name in a specific folder maybe with a specific resolution (width x height) entered directy within this dialog window.
Is it possible to get this path and the optionally changed resolution via Adobe script (after saving the file; or starting the script just before "save for web")?
Thanks a lot!
Carlos
I don't see anyway to get the user's options from the SaveForWeb dialog. The descriptors for both charIDToTypeID( "Expr" ) and charIDToTypeID( "Mn  " ) are empty.
But you can use the DOM to sfw. Below is a function to save jpg using sfw.
function SaveForWeb(saveFile,jpegQuality) {
var sfwOptions = new ExportOptionsSaveForWeb();
   sfwOptions.format = SaveDocumentType.JPEG;
   sfwOptions.includeProfile = false;
   sfwOptions.interlaced = false;
   sfwOptions.optimized = true;
   sfwOptions.quality = jpegQuality; //0-100
activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
Look up ExportOptionsSaveForWeb in the scripting guide for other formats.
You would have to do the resize as an extra step when saving using the DOM.
Related articles
  • CS4: get file name after saving for web 10-11

    Hello, I am saving a file via "save for web" with a specific file name in a specific folder maybe with a specific resolution (width x height) entered directy within this dialog window. Is it possible to get this path and the optionally changed r

  • Adding suffix to jpg file name? Save for web? 10-11

    Hi, I'm very new to Applescript but, with the help of a few others (thanks H), I've managed to successfully write a script to produce various versions of a selected set of photos. However what I would also like to be able to do is to add a suffix of

  • Why is same file different sizes after saving for web? 10-11

    I have files that I save in PSCS3, under, "Save for Web & Devices" and I indicate under "optimize to file size" that they should be no larger than 60K. After item is saved and I go to "Get info", it says the file is 60K.

  • Add exif-data while / after saving for web? 10-11

    I use "save for web" quite often. However; i would like to add some exif-data to the picture after it is saved. Is there any way to do this with JavaScripting in Photoshop (CS3) ?[email protected] wrote: > I use "save for web" quite

  • Thumbnail images corrupt after saving for web 10-11

    I am working with CS2. Whenever I choose "Save For Web," the thumbnail preview on the desktop doesn't show the full image. Half of it is grey. This only happens when I choose save for web. Sometimes if I single-click the thumbnail, the entire im

  • What is the best way to keep high res when saving "for web" 10-11

    the files i'm saving for web so i can get them in jpg (or gif) format are coming out very pixelated.  this is when i print the image.  what is the best way to save for web an image and keep the resolution good.  using for a business card template.  a

  • Photoshop PNGs saved for web in CS3 v.10 still are not transparent in iWeb 08 2.0.4 10-11

    I have read the topics and tried the tricks and still have black backgrounds on my photoshop graphics.   After saving for web & devides as png8 with transparency I have a checkerboard pattern behind my graphic. I am using the magic wand tool, selecti

  • Original file turns modified after "Save for Web-" 10-11

    Hi everyone! I'm with a little question. What happens to the edited file after saving its copy using the "Save for Web-" command? Why the original, unmodified file turns into "changed" (with * symbol after its name)? P. S. The same beh

  • PSD files saved for web and devices  show up as broken when opened Dreamweaver. How can this be fixed? 10-11

    PSD layouts saved for web and devices show up as broken links in dreamweaver. Previews in browsers are fine, but I keep getting and error message that says the files have been blocked. What is the fix for this?You can also try out Project Parfait. It

  • Change File Name In The "File Download" Dialog Box For Web Reports 10-11

    Hi All , I followed the below note to change the "File Download" name. How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1 However its not working. Has anyone tried this and works fine ?

  • Losing quality when saving for web after using Multiply 10-11

    I have a normal photograph, with a red layer on top set to Multiply/Darken. When I save it for web, regardless of what pixel size, or what uploader I use the quality is terrible. Have tried uploading to different services, from difference devices wit

  • How can I get PS CC to always load my preferred Preset while saving for web output? 10-11

    For my purposes, I'd prefer to save all JPEGs at 100% quality while saving for web output. I've made a preset as seen below. However, PS doesn't always defer to this setting when I begin saving an image for web. Is there a way to make this preset aut

  • Artboard name and save for web or export 10-11

    Hi when saving for web or exporting an artboard is there any way to pre-populate the save file name dialog box with the artboard's given name. It would save having to re-name the file and make good use of that metadata. Thanks in advanceThere is a wa

  • How to retain file name while saving file on archive servers 10-11

    Hi Experts, I am using function modules: ARCHIVOBJECT_CREATE_TABLE and ARCHIV_CONNECTION_INSERT for inserting a file to archive server and for linking it with a document. Then I am reading the URL using FM: SCMS_AO_URL_READ. When I get this URL and d

  • Photoshop crashes when saving for web and devices 10-11

    When hitting saving for web and devices, Photoshop starts to render images but before it's done, it crashes. I get an error-popup with no text and the screen where normally the animation is shown is red. Then Windows comes with a crash report and I c

  • GET FILE NAME C:\temp\ADIBO.txt 10-11

    Hi, How to get file name? I used Get_File_NAME, but I'am getting an error. lv_lfilename is not the type LOGICAL_FILENAME C:\temp\ADIBO.txt I need to get  ADIBO ?? tnh, Adibo..:) I am using this code to download file and after that I need to get FILE_

  • Error in reciever file adapter , where i am getting file name dynamically 10-11

    hi all, error in reciever file adapter , where i am getting file name dynamically, please help me in this isssue , i am trying for a long time MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (for

  • How to get file name of the form attachment? 10-11

    Hi, is there anybody who is able to help me with the following problem??? I started my process from Workspace ES and as a first step I attached one locale file (IMG.JPG or IMG.TIF e.g.) as a form attachment. I used "Attachments" bookmark in the

  • Need to get file name and directory back from file adapter - WRITE 10-11

    I am using the file adapter to write a file. I want to log the file name of the file we just created. Since we use a precise timestamp in the file name, I can't accurately guess. I have an invoke in my BPEL process to the file adapter. My first try w

  • Colour problems after exporting for web 10-11

    Hiya I'm struggling with a colour issue on a website I've recently designed. The original design was done in Photoshop CS3 and includes a think purple band at the top of the page (http://www.deliciouscafe.co.uk/index.html). After slicing up the desig