How to save a jpg and give it a label automatically

Hi guys. I've found myself regularly repeating a set of actions and I was wondering if there was some way of automating them using CS4. The scenario is that I use Bridge as my main photo organisation app. I rate my shots from 1-5 stars and then tend to double click on ones to edit them in PS. After saving the edited shot as a jpg with "_edited" added to the filename, I apply a label which is called 'Enhanced' and then apply a 'Original' label to the original jpg. This lets me immediately filter of my edited/enhanced shots in Bridge and locate the originals if I need them. It also makes the edited files stand out when looked at in a file view of Explorer etc .
Is there an action or script I can create so that when I've finished editing a jpg it will take the original file name, add "_edited", save it as quality 10, baseline optimised, then apply the 'Optimised' label to the new file and exit the original jpg without saving but with applying the 'Original" label?
Any advice would be much appreciated. Thanks.

I have modified the function slightly, could you try this version please?
#target photoshop
if (!BridgeTalk.isRunning("bridge")) BridgeTalk.launch("bridge");
if(documents.length >0){
var originalFile = activeDocument.fullName.fsName;
var saveFile = activeDocument.fullName.fsName.slice(0,-4)+"_edited.jpg";
SaveJPEG(saveFile, 10);
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
labelPic(originalFile,"Original");
labelPic(saveFile,"Enhanced");
function labelPic(file,tag) {
   var bt = new BridgeTalk;
   bt.target = "bridge";
   var myScript = "";
   myScript += "var file = new Thumbnail(\'"+file+"\');";
   myScript += "var md = file.synchronousMetadata;";
   myScript += "md.namespace = \"http://ns.adobe.com/xap/1.0/\";";
   myScript +="md.Label = \'"+ tag +"\';";
   bt.body = myScript;
   bt.send();
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality; //1-12
activeDocument.saveAs(new File(saveFile), jpgSaveOptions, true,Extension.LOWERCASE);

Similar Messages

  • How to save a jpg and gif at same pixel size?

    This doesn't seem to be very convenient.. I need two file types of same image, identical dimensions..
    Thx

    I don't have AI 13 (CS3), but in AI 12 (CS2), I get the same pixel dimensions for both .jpg and .gif versions created via Save for Web (using your 350x200 example).
    To report oddball forum software behavior, post over at Forum Comments. Don't hold your breath.

  • Save the file and give date & time stamp

    1. Reading the Excel file from the selection screen as a parameter.
    2. Using F.M. ALSM_EXCEL_TO_INTERNAL_TABLE reading Excel file into
        Internal table.
    3. Implementing the Business Logic.
    4. Move output to Final Internal table.
    5. Final internal table should generate a Flat file. By using GUI_DOWNLOAD.
    6. That flat file should be saved with the name and location given in the Excel.
    7. When ever I run the program output file will generate in the same location but with date and time stamp. Because I’m running the program for range of employees say initially I run for 1 – 10,000 employees next 10,001- 20,000 like that.
    Whenever I run for 2nd time it will overwrite the previous output, that’s the reason I’m using date and time stamp.
    Eg:
    PERSONAL Numbers              Name                                         Location
    00000001                 xxxxx-24.04.2007-10.30          C:\        
    00000002                 xxxxx-24.04.2007-10.35
    00000003                 xxxxx-25.04.2007-10.40
    00000004                                  xxxxx-25.04.2007-10.30
    Can any one help me how to save the file and give date & time stamp through hardcode?
    please help me in this issue.

    I am not clear with your problem. Based on the understanding of your question,
    there  can be two cases.
    1- U want to insert time stamp in the output file.
    2- Time stamp is already there, u just have to solve the overwriting issue.
    If your question goes with option 2, You can make use of import parameters
    <b>CONFIRM_OVERWRITE</b> : Which will ask for confirmation before overwriting.
    <b>APPEND</b> : which you can choose either to append the data to the existing file or overwrite it.
    Please inform if the issue is not resolved.
    Message was edited by:
            BINU RAJ BINU

  • How to save a JPG in 256 colors?

    I'm using Photoshop CS2.
    1. How to save a JPG in 256 colors?
    2. Is there a way to see an image properties?
    -- I want to know if that image is in 256 color or not...

    Mary Jo, since you are a newcomer, you may not yet understand that in any given Adobe forum, there are a whole bunch of conversations going on at the same time. Each one of these is about a certain "topic", described in the title and opening post. The discussion sometimes stays right on point, and sometimes veers off a bit, and there are often quick side-issues branching off from the main topic, but still related. Within limits, people here try to keep the discussion on a single general topic. For example, in this topic, the initial issue is whether there is a way, in Photoshop, to limit the number of colors in a JPEG image to 256; there were discussions about whether this could be done or not, and alternative programs that may be able to accomplish this, and a comparison of the file sizes for 256 bit images in different file types.
    Your question, however, is not a logical outgrowth of the discussion. It's a perfectly good question, but it deserves its own new discussion topic. It's like a bunch of people have been sitting around a table discussing the merits of Canon vs. Nikon SLRs, and someone sits down at the table and, instead of joining the conversation, asks a completely unrelated question about point-and-shoot cameras, or camcorders.
    It's off-topic here, and you should start a new topic. Make the title descriptive, such as "Why does a 8 megapixel image result in a 3 megabyte file on my computer?" (assuming that's what you want to ask -- just "M" doesn't tell me whether you are talking about MP or MB). In the initial post, provide a more detailed description of what you want to know. Tell us what camera and Photoshop version you are using, and how you encountered the issue. People will see that a new topic raises an issue they know something about and you will get a response -- probably a good answer, if you keep in the conversation.
    [Edit: Trez hit "post" before I did. Trez-- I think she is using Photoshop, not Elements; she did say CS2.]

  • How to save my emails and adressbook files from an old ibook?

    How to save my emails and adressbook files from an old ibook (bought around 2002) ?
    The screen from the old ibook doesn´t work anymore (logicboard problem I guess).
    I saved everything else with starting it in target modus. That worked fine.
    I want to delete the files after that as well, because I wanna give away the old ibook and don´t want anyone to read my emails!
    Little helpers I have:
    A running MacBook
    External Screen (and cables to connect)
    Fire Wire Cable

    Don't know how helpful this will be but I often copy mail from one computer to another, I drag the mail from the mail window to the other computers drop box, then from the other computer double click it and mail asks me what I want to do with it, of course without a screen you'd need to use back to my mac.
    If you don't have back to my mac running, you could set up a second user account on the newer mac, import everything via target mode as suggested by c above, and then drag the mail to the first user account drop box.

  • How to save a game  and then load

    My final project of BSCS (Bachelor of Science in Computer Science) is a Multiplayer online Board game...Distributed Ludo...
    This project is in its final steps and I�m facing some difficulties.
    I do not know how to save the game and load it again. Can anybody guide me to the process?

    Saving a game is just persisting the data required for the game.
    Loading a game means reading the saved data and setting the attributes of the game (and player and ...) to start exactly the point where it was saved.
    So the steps to save are
    1. Identify the data necessary for retaining the same state when needed.
    2. Decide the data file format and structure.
    3. Get the snapshot of necessary attributes
    4. Save the data using APIs
    Steps to load are
    1. Read the data using APIs.
    2. Set the game attributes.
    3. Update the model and view accordingly.
    Hope this helps.

  • How / can I have jpg logo objects used on reports automatically updated

    How / can I have jpg logo objects used on reports automatically updated after making changes to the repository copy of the jpg logo object in the repository?   The reports are in the enterprise items folder of the repository and the logo.jpg file is in a subfolder of repository items.  I made changes but the changes seem to apply only after I set my options in crystal reports and open the actual rpt file itself. 
    Is there a way to have the changes to the logo show / apply in all reports that have the repository item logo inserted into it without having to open every rpt file in the repository?

    Yes, I understand that...  the problem I was having was that check box being unchecked whenever an unrelated change was made to rpt file...  I was able to ensure that it remained checked by doing save as to the rpt file and making sure the "enable repository refresh" box was checked and replacing the file when prompted upons saving the rpt file...

  • How to save a document and allow others to sign too

    Hopefully someone can help me out with this. I've spent a good 12 hours playing with different methods and techniques over the past week and still am trying to get this little bugger sorted out.
    I'm working on some real estate contracts and need to be able to not only sign them, but once the document is signed, continue adding text to the document and allow another to sign it as well, even if that sounds weird to add content after it's signed.
    (I basically am trying to save time by having some presigned contracts that I fill out as needed so I don't have to go through the signing process every time.)
    How can I save a PDF and then continue to add more content later, as well as add more signatures as needed?
    I'm using Acrobat Reader XI for Mac if it makes a difference.
    Thanks!!

    Thanks for the quick response. I'm using an image of my handwritten signature.
    I downloaded a trial of Acrobat Pro, but does it offer more functionality than I can get with simply the reader?
    Similarly, if I have a PDF that won't let me sign it, how can I make it signable?

  • How to save for web AND overwrite original files with Action?

    Hello,
    I want to compress a batch of images with "save for web" using a Photoshop Action, and I also want to preserve my folder structure and overwrite source files. The structure is important because it's complex and needs to be structured this way.
    The Problem:
    When I choose "save for web", I must define a destination. What happens is all optimized files from within the structure are saved in a single location.
    Here's an example of the folder structure
    Folder A
         - Subfolder A1
         - Subfolder A2
    Folder B
         - Subfolder B1
         - Subfolder B2
              -Subfolder B2.2
    Folder C
         -Subfolder C1
    Summary
    Is it possible for me to use a Photoshop Action with "save for web", and overwrite my files without moving them from the structure?

    No need to re-invent the wheel.
    Just learn how to use the Image Processor, Image Processor Pro, or Dr. Brown's Services 1-2-3 in Photoshop and/or Bridge.

  • How to have my Jpg and RAW files in version sets (PSE10)

    I take both jpg and RAW files on my camera so that most of the time I am pleased with the jpg and do little editing, but some of the time I need to really work on a photo which is where the RAW file comes in handy. In my photo well I have 2 of each picture displayed ie the jpg and RAW. How can I get it so only the jpg is displayed and the RAW either hidden or as a version set collapsed? Having 2 of each photo makes the photo well look untidy and full of duplicates.
    Help appreciated.

    Highlight the two photos (using Ctrl+click), right-click on one of them and select "Stack...Stack Selected Photos".
    Ken

  • How to save terminal command and output history to pdf on exit?

    When I exit a terminal session (terminal.app), I would like to automatically save the commands and output from the session to a PDF (or text file) as a reference. 
    I can do this manually in Terminal by selecting Shell --> Print... --> PDF --> Save as PDF...
    Unfortunately, I'm too forgetful to remember to do this each time before I exit. 
    Is there an alias I could set or some other method to automatically save the contents of my session to a PDF when I exit?
    Thank you in advance,
    jjw

    Frank,
    Your response was helpful, but I realized after looking at my .bash_history file that only the commands entered are listed, not the output.  I would like my commands to be printed out, but also the result from the commands (in this simple example, the directory listing):
    myuserid[~/galaxy-dist/tools]$ cd ncbi_blast_plus
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:37
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$ ls
    blastxml_to_tabular.py   hide_stderr.py           ncbi_blastp_wrapper.xml  ncbi_tblastn_wrapper.xml
    blastxml_to_tabular.xml  ncbi_blastn_wrapper.xml  ncbi_blastx_wrapper.xml  ncbi_tblastx_wrapper.xml
    -------------------------------------------------------------------------------- ----------------------------------------------------- 09:48:38
    myuserid[~/galaxy-dist/tools/ncbi_blast_plus]$
    I'm thinking that there is an automator script or an alias that I could use so that when I type, "exit", the commands and output for the session would be sent to a PDF and then the session would close.
    I know it seems like an odd thing to want, but sometimes I'll forget the sequence of commands that gave me the correct output (plus, my command prompt has a timestamp on it, too).
    Thanks, though, for the .bash_history information.
    jjw

  • How to save the variant and select it for displaying output

    For       ALV variant use the FM_REUSE_ALV_VARIANT_F4 and REUSE_ALV_VARIANT_DEFAULT_GET to allow the user to save the variant and select it for displaying output.If   any of the data (Z fields in VBAP) is blank,the cell in the column must be highlighted in red.

    Hi,
       Refer thsi code
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
    *&      Form  sub_get_default_variant                                  *
    This form will initialize the variant                               *
    FORM sub_get_default_variant .
    *--Clear
      CLEAR wa_variant.
    *--Pass the report name
      v_repid = sy-repid.                     "Report ID
      wa_variant-report = v_repid.
    *--Call the function module to get the default variant
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = wa_variant1
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
    *--Check Subrc
      IF sy-subrc = 0.
        p_varnt = wa_variant-variant.
      ENDIF.
    ENDFORM.                                  "sub_get_default_variant
    Regards,
    Prashant

  • How to save all incoming and outgoing mail

    I run a Leopard server with 10 email clients that I want to be able to save the incoming and outgoing messages from. I could have sworn that under Tiger, I had the catchall working to include both incoming and outgoing mail to [email protected]
    However, under Leopard the catchall seems to grab only the incoming emails? Is there a way to do this? or - is there a better way I SHOULD be doing this. Basically I need both a record of emails for liability issues and the ability to access them easily (this was made convenient by using webamil to login and read as needed).
    Thanks!

    In /etc/postfix/main.cf
    See also:
    http://discussions.apple.com/thread.jspa?messageID=4979965&#4979965
    http://discussions.apple.com/thread.jspa?messageID=2925242&#2925242

  • HT1414 How to save my number and picker before update

    How to save my number before download the new iOS

    What number?  What picker?
    If you mean your phone number, that has nothing to do with iOS or the updates.

  • How to select many raw files resize save as jpg and close ?

    Hi,
    I wish to simply see a whole load, say 300 , of raw files as thumbnails, select those I wish to resize, adjust exposure etc, indicate the new pixel dimensions then have that happen and close them saving to a new folder.
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    Trouble with this is one cannot indicate to raw viewer as one makes ones way through the thumbnails, which pics are to be opened when all have been assessed. I hit delete on those I am not interested in, but this deletes them from the PC !  If there are lets say five subtle variations, and only when seen large can one decide which is best, if no changes are required, there is no way of teling which one is the chosen one when going back down the list using ctl to select those for opening.
    I end up doing perhaps 20 at a time, as to open 300 kills pshop.
    Whats the best way here ?
    I also use BreezeBrowser as its great for viewing a folder full of images as large thumbnails or thumbnails with a large view of the selected image, but it has no way of resizing when converting from raw to jpeg.
    Envirographics

    Envirographics wrote:
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    If you're running through masses of images, perhaps you should consider Lightroom.  It's set up to do things along the lines of what you're doing.
    -Noel

Maybe you are looking for