Read (get) active document jpeg save quality

When one creates a jpeg using Save As, the jpeg options dialog box allows one to select a quality level of 1 to 12. When the file is re-opened and saved again using Save As, the original quality value appears in the dialog box. Is there a way to use javascript (or vb or applescript) to read this value for the active document?
According to the Javascript Scripting Guide, the JPEGSaveOptions for quality are read and write.
If one uses:
alert(JPEGSaveOptions.quality), one gets the value 3, which is the default value.
How do I get the value for the current active jpeg image (document)? Is it possible?
TIA,
Tom

[email protected] wrote:
>
> How do I get the value for the current active jpeg image (document)? Is it possible?
It's actually an Ps-specific exif value. I determined how to get at it other
than by using exiftool. Ex:
exiftool -PhotoshopQuality DSCN3255.jpg
I'll crack open exiftool and see if there's a straightforward way to read it
directly from the file.
-X
for photoshop scripting solutions of all sorts
contact: [email protected]

Similar Messages

  • How can I get my document to save with the rotated view last used?

    How can I get my document to save with the rotated view last used? 

    Possible with Adobe Acrobat, not Adobe Reader.

  • How to read/get the document attached to PO line item

    Hi experts,
    I got a requirement wherein I need to read/get the document attached at PO line item and to send that document through mail as an attacment .
    please suggest me how to proceed on this.

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • How to get active document  swatch color and its value

    Hi
    i want to get the swatch color of active document
    i use 3 to 4 colors both cmyk and pantone which is in swatches
    now i want to get their values using script
    any one please help me
    Thank you
    Appu

    Download the script "Render Swatch Legend" from the following site: http://www.wundes.com/JS4AI/
    This script generates a legend of rectangles for every swatch in the main swatches palette. You should be able to grab the code you need from this.

  • Read Email Attachment Document and Save it in DMS

    Hi
    I  have developd a zFM for reading the email attachment and storing it in SAP.(CV01N)
    using the FM for SO_DOCUMENT_READ_API1(Read attachement)  CVAPI_DOC_CHECKIN(Save Document) FM for save it in SAP.
    After reading the attachemtn am getting Hexa decimal Values and i have convert into binary.
    But the output is showing can't open the file.
    How to solve this?
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
              EXPORTING
                document_id                = lv_doc_id
              IMPORTING
                document_data              = lw_doc_data
              TABLES
                object_content             = lt_objcontent
                contents_hex               = lt_contents_hex
              EXCEPTIONS
                document_id_not_exist      = 1
                operation_no_authorization = 2
                x_error                    = 3
                OTHERS                     = 4.
    Converteing Hexa decimal into srting by loop the internal table  lt_contents_hex.
    lv_raw concatenate hexa decimal values
              CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
                EXPORTING
                  buffer        = lv_raw
                IMPORTING
                  output_length = lv_length
                TABLES
                  binary_tab    = it_temp_binary.
         CALL FUNCTION 'CVAPI_DOC_CHECKIN' ......

    Hi,
    thank you.
    The DB-Version is 9.2.0.4.0
    This document does not help me...
    I need to create any procedure that inserts the nodes(tag-name) and when the node has any content then the content too in the table and s.o., so how I have it entered in the question...
    Any Idea?
    Regards

  • Active document must to move one location

    Hi
    When i open file in Original location that file need to be move in desktop. When file was moved Original location file must be delete.
    File must be move in one location to another loaction.
    Please help me.

    sasientry wrote:
    yes JJMACK
    I need a photoshop script for mac and pc.
    When i open file in photoshop after i run script active document must save in my desktop but i dont need source file where i was opened that file must tohe delete
    For the script to work on both platforms then you need to write it in java script.  Retrive the full file path of the file assocated with the current document into a File varaible with a name like currentFile something like this
    try{
    var test = app.activeDocument.fullName.displayName;
    }catch(e){
       alert("Error, File Not Saved.");
    if (test){
    var currentFile = new File(app.activeDocument.fullName.fsName);
    then save the document to your desktop "~/desktop/" + newFile
    After that delete to original file with
    currentFile.remove();
    else { save document to desktop }

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • How to get the filename of the current active document in InDesign CS4?

    Hi,
    If I open a document from File->Open, I can get the document's file name using IOpenedFileInfo->GetOpenedFilePath().
    But, if I create a new document and perform File->SaveAs, GetOpenedFilePath is returning invalid IDFile reference.
    What is the right way to get the active document's file name?
    Thanks,
    VSP

    You can try this:
         IDatabse * db = ::GetDatabase(theDoc);
         IDFile *  sysFile = db->GetSysFile();
         PMString docName = sysFile->GetFileName();
    Good luck

  • When I try to export the file in word, I get the error "The Save as command has not been able to develop this document. Unable to create file"

    When I try to export the file in word, I get the error "The Save as command has not been able to develop this document. Unable to create file".
    Win7 Pro, 64bit
    Acrobat XI Pro, tryal

    Create a one word pdf file. Try converting to word. If that fails, try a complete uninstall, run the cleaner tool, then re-install.
    Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs

  • How to get Adobe documents to Adobe Reader on Iphone?

    I downloaded Adobe Reader to my Iphone. When i tapped on a Adove file i got on my email(on my iphone) it said "saving to disk", wich disk is it talking about? And how can i reach it from my Adobe Reader app?

    MargretheS,
    What is the mail app that you use on your iPhone.  Apple Mail (the default iOS mail app) does not show the message like "save to disk".
    Did you find the answer to your question in How to get PDF documents into Adobe Reader for iOS (iPhone on iOS 7 version)?
    Please let us know if you have additional questions.

  • I have a new iMac running OS 10.9 when I use the Command S shortcut it no longer saves the active document it speaks it instead.

    I have a new iMac running OS 10.9.  When I use the Command S shortcut in any of my apps (numbers, text edit etc), it no longer saves the active document it speaks it instead.  How can I revert to the save shortcut function?

    have you looked in
    system preference->Dictiation & speech if it's assigned there?
    or system preference->accessibility if it's assigned there?

  • How can I get the windowRef of the active document window?

    Hello,
    Hou could I get the ADMWindowRef of the active Document window in Illustrator CS4- CS5? I can not use ADMWindowSuite1  because is On Mac OS only.
    Thank you very much to Everybody.

    There's no API for this, not if you want to make use of it in a useful way. You have to write Windows API code to do it. I reccommend using Spy++ to suss out the structure. Frankly, it's pretty annoying. It'd be extremely helpful if the API provided this, but it doesn't.

  • How to get the active document file name using illustrator CS2 plugin code?

    I wanna take file name from active document using illustrator plugin CS2. Plz anybody help me..
    Thanks in advance..

    AIDocumentSuite::GetDocumentFileSpecification() should get you that information. Note that it will only work properly if you've already saved the document (or opened it from a file). I'm not sure what the result looks like if you're calling that on a new, unsaved file.

  • OPENING AND GETTING MS WORD ACTIVE DOCUMENT THROUGH CLIENT_OLE2

    I am opening a word document through webutil host command. Now I need to get the active document of the opened word file.
    How it is possible?. Since I need to fire Callback trigger 'MY_TRIGGER' I can not define 'Word.Application' and get the
    'ACTIVEDOCUMENT'.
    DECLARE
    PID WEBUTIL_HOST.PROCESS_ID;
    app CLIENT_ole2.OBJ_TYPE;
    ADOC CLIENT_ole2.OBJ_TYPE;
    BEGIN
    PID := WEBUTIL_HOST.NonBlocking_With_Callback('D:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:\MYWORD.DOC','MY_TRIGGER');
    --APP := CLIENT_OLE2.CREATE_OBJ('WORD.APPLICATION');     
    --ADOC := CLIENT_OLE2.INVOKE_OBJ(APP,'ACTIVEDOCUMENT');          
    END;

    hi
    i did not get u very well but i am trying to help u.what do u want to achieve?
    check this code.
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :long_item);
    -- save document as example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
    CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
    CLIENT_OLE2.INVOKE(app,'Quit');
    END;sarah

  • Save metadata in LR - degrade JPEG image quality?

    Hi:
    Does anyone know whether using the 'save metadata' feature in LR to save changed metadata to a JPEG file will result in a resaving of the entire file and/or otherwise degrade the JPEG image quality? 
    If it does not degrade the image quality, how does this feature work?
    Many thanks for the help

    Each pixel remains unchanged in this process.
    I was under the impression that any re-saving of a jpeg image results in a slight loss of quality, regardless of whether there have been changes to the image
    This is true for other editors, such as Photoshop or Photoshop Elements, but it is not true for Lightroom because, as explained, LR does things differently than other software.

Maybe you are looking for

  • Is there any way to recover a file if Time Machine is not set up?

    I accidentally overwrote a file in word (i saved it as the same name and i agreed to overwrite it). I do not have Time Machine set up. Is there any way to recover the original file?

  • Drag and Drop from LR to other applications

    There was a thread going on D&D from LR to explorer. The other appliation problem I have is the apparent inability to drag and drop from lightroom into a file transfer window (e.g., file upload with SmugMug). The quick collection is an awesome way to

  • Cannot find symbl method update Date(int,java.util.Date)

    I get following error cannot find symbl method update Date(int,java.util.Date) on compling class called GuestDataBean at line ( rowSet.updateDate( 4, guest.getDate() ); ). GustBean.java. I need help on why I get it. // JavaBean to store data for a gu

  • Copy materail master only on selected fields

    Hi guru, I am exploring the possibility on copying exisitng materail master ( when createing a new matearil master ), only copy certain fields as deseired. Does anyone know if it's possible and where to do the config. Thanks

  • Canon G10 Camera Raw - works sporadically

    I downloaded and installed Camera Raw 5.2 in Photoshop CS4, about an hour ago. Since then I have had varied, and it seems random success in opening raw files in Photoshop. I only loaded a couple of G10 raw files onto my computer [desktop]. Sometimes