Save jpg into same location with appended filename and no dialog

Hi there,
I've got thousands of images on a local server, all nested in a folder structure. For each image I need to open it, run an action to resize it, then save a jpg copy into the same folder it came from with an appended filename. I need to supress the jpg quality dialog (and all dialogs) so I don't have to babysit the batch process In Photoshop.
I select the initial files by kind & aspect ratio in Bridge then run a Batch Action.
Any suggestions?

Something like this?
app.displayDialogs = DialogModes.NO;
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
var saveFile = new File(app.activeDocument.path.toString() +"/"+Name +"-edited.jpg");
SaveJPEG(saveFile, 8);
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
function SaveJPEG(saveFile, jpegQuality){
jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = jpegQuality;
activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);

Similar Messages

  • My iPhone4 is showing no service so i power down but when i power back up it says to plug into itunes and restore, i had this same issue with another iPhone and apple replaced it but its doing the same thing on this phone any help would be apprecaited

    my iPhone4 is showing no service so i power down but when i power back up it says to plug into itunes and restore, i had this same issue with another iPhone and apple replaced it but its doing the same thing on this phone any help would be apprecaited

    AAAAAANNNNNNDDDDDDD go figure no one can help!!!!! i just dont know what to do, i guess no-one else does either lol!!!! thanks anyway!!!!!

  • I have an apple id but i have not been able to use the same id with i tune and app store..what to do

    i have an apple id but i have not been able to use the same id with i tune and app store..what to do???every time i m trying to login it is telling that this id has not been used with i tune and App Store ....reviewing of my id is one of the option provided to me after this...

    Have you logged in and reviewed your account and entered payment details ? Unless the instructions on this page are followed when creating an account : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…
    then credit card details will need to be entered before the account can be used to download any item from the store.
    You could see if this post by mountaingoatgirl lets you review your account without needing to enter credit card details : https://discussions.apple.com/message/24303054#24303054
    If not then you will either have to enter card details (you should be able to remove them after entering them), or create a new account (using the instructions on the above link).

  • I bought a iPhone and I was able to log into my iCloud with no problem and when I tried to update it it kicked me out and now it's asking me for the old apple user please help what can I do...?

    I bought a iPhone and I was able to log into my iCloud with no problem and when I tried to update it it kicked me out and now it's asking me for the old apple user please help what can I do...?

    Contact the original owner, and ask them to remove the device from their icloud.
    http://support.apple.com/kb/PH13695
    HTH

  • My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon. The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
    Use the wall-mount charger that came with the iPad and charge overnight.  Do NOT use an iPod/iPhone charger.  Do NOT use a computer's USB port.  Then, operate it normally until auto shut-down (ignore any low level alerts that may appear).  An irony is that doing that test to determine the total operating time is also the procedure necessary to calibrate the battery level meter.
    I'm not claiming that you do not have a problem.  I am stating, however, that we don't yet know.  If the above test does, in fact, indicate a problem, read this.
    Also, according to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • HT4623 How do we save a attachment which comes with the mail and where?

    IHow do we save a attachment which comes with the mail and where?

    What type of file is the attachment ? You first need an app on your iPad then supports the type of file that you want to save on the iPad - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app. If you have an app that supports the type of file that you want to save, then pressing and holding the attachment might (if the app supports it) give a popup with options to save ('open in') the attachment in your app.

  • How to save as AI file in same location with all text curves?

    Hi Guys,
    I am also looking for a script. Here are the details....
    I do have lot of AI files (from different paths), which are completly work  done. So I just need to make them (all files) a copy with all text  curves in the same path should create folder name called 'LC'.
    From  the given path all the files should save as to 'LC' folder. ('LC'  folder needs to create at the same location and original file should  stay as it was, so no changes in original/source file)
    While  making curves we must remember that layers contains lock. So have to  unlock all the layer and make curves and lock them back.
    While save as the all files in the file names should add '_LC' at last. For example: file name is 'xyzxyz.ai'. It should come 'xyzxyz_LC.ai'
    FYI: Using Adobe CS4...
    if you help me that would be really grateful...
    Thanks in advance..
    Kind Regards
    HARI

    Hello Hari,
    maybe this could be a startingpoint for you:
    var lb="\n";
    function writeNtimes(max){
         // read about namespace and visibility
         var string2 = "Read the F. Manual!";
         for(i=0;i<max;i++){
              //about loops
              alert(string2);
    function tieMyShoes(){
         if(willingness){
              //about conditional statements
              var refs = "Mozilla js reference and guide - very good\nAdobe Illustrator and ESTK references";
              alert(" Please start with the following "+lb+lb+refs);
              // about Strings
              gotIt=true;
         }else{
              var moocher = confirm("are you just looking for someone doing your work for you for free?");
              if(moocher){
                   writeNtimes(10);
              }else{
                   gotIt=confirm("Yes I understand");
    var aString = "Hello HARI";
    alert(aString);
    var gotIt = false;
    var willingness = confirm("are you interested in learning Illustrator JS?");
    var string2="RTFM!";
    while(gotIt==false){
         tieMyShoes();

  • InDesign 2014 files don't save in the same location as the original file

    The behavior in InDesign CC was to automatically save the file in the same location. I understand this is a new version, and saving my InDesign 2014 files should open a save dialogue. But I don't understand why InDesign seems unaware of the file's location. In this new version I have to navigate to the files location to overwrite, and that is taking extra time that the previous version did not require. Is there a way to restore the previous behavior. I have looked in Preferences, but I can't find a way to revert to the old behavior. Any advice would be appreciated. -Thanks.

    As Peter noted, it has ALWAYS been this way. It’s a one time thing.
    You can file a feature request here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Make sure to file a complete description along with a solid business case as to why most users would benefit.

  • Reporting Services Auto Export to PDF on a shared location with dynamic filename

    Hi Guys,
    I have this ERP system that is calling a url with the Document No parameter, the link automatically converts to a PDF but comes up with the OPEN/SAVE/CANCEL box however i want to automatically save to a default location...is this possible?
    Secondly i need the filename to be saved as the Paramter Name and the date.pdf in the format DocumentNo- Datetime.pdf is this also possible?
    Thank you in Advance

    Hi Dan,
    According to your description, you want to export a report to PDF using URL access. And trying to export the report with specify name automatically without prompting the OPEN/SAVE/CANCEL box. The file name should come from the parameters of the report.
    For security reasons, it is not allowed to write files on a client computer (Shared folder), except for a few pieces of information in cookies.
    While using URL access to export a report, the exporting process will save the file with the report’s name automatically.
    In order to export the report to a specify folder with a specify name, we can send a request to the Report Server in custom application, and then receive the data from the Report Server. In the custom application, save the data to the specify folder with the specify name in server side.
    Please follow these steps to archive the target:
    1.       Create a C# Web application.
    2.       In the page_load event of a page, embed the following code:
    string URL = "http://localhost/Reportserver?/AdventureWorks Sample Reports/Employee Sales Summary";
                string Command = "Render";
                string Format = "PDF";
                //We can get values of these parameters from Request object.
                string paramReportMonth = "12";
                string paramReportYear = "2003";
                string paramEmpID = "288";
                URL = URL + "&rs:Command=" + Command + "&rs:Format=" + Format + "&ReportMonth=" + paramReportMonth + "&ReportYear=" + paramReportYear +"&EmpID=" + paramEmpID;
                System.Net.HttpWebRequest Req = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(URL);
                Req.Credentials = System.Net.CredentialCache.DefaultCredentials;
                Req.Method = "GET";
                //Specify the path for saving.
                string path = @"C:\" + paramEmpID + "-" + paramReportYear + "-" + paramReportMonth + @".pdf";
                System.Net.WebResponse objResponse = Req.GetResponse();
                System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Create);
                System.IO.Stream stream = objResponse.GetResponseStream();
                byte[] buf = new byte[1024];
                int len = stream.Read(buf, 0, 1024);
                while (len > 0)
                    fs.Write(buf, 0, len);
                    len = stream.Read(buf, 0, 1024);
                stream.Close();
                fs.Close();
    3.       Use the URL of the above page with parameters to export a report to the specify folder with specify filename.
    E.g. http://<server>/custom application/export.aspx?parameterReportYear=2003&parametermonth=12&EmpId=288
    Of course, we can pass other parameters with the URL such as Format.
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • Download internal table data into excel sheet with column heading and data

    Hi,
      I am having one internal table with column headings and other table with data.
    i want to download the data with these tables into an excel sheet.
    It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
    Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
    what we have to do for storing the file name in runtime.
    Can anyone help me on this.
    Thanks,
    Rose.

    Hi Camila,
        Try this
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = PATH2
       FILETYPE                        = 'XLS'
      TABLES
        DATA_TAB                        = IT_DATA
       FIELDNAMES                      = IT_HEADINGS
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • Getting Output filename and extension same as the incoming filename and extension

    I need to create a SFTP send port where I should get the output file name and extension same as that of the incoming filename
    I had set the filename in the send port as "%SourceFileName%" but this did not work.
    I have also assigned the input filename (without extension) in a variable in orchestartion. Is there any way i could get the output filename and extension same as that of the incoming message?
    Any help would be much appreciated

    Hi,
    The %SourceFileName% macro maps to the context property BTS.ReceiveFileName that travels with your message in the context. So in order for this macro to work in a send port the message that is going out needs to have this BTS.ReceiveFileName property on
    the context. You probably creating a new message in your orchestration and sending that out. The new message does not have the property on its context which makes it fail. Use a message assignment shape in your orchestration to set the context property for
    the message going out:
    MyMessage(BTS.ReceiveFileName) = OrigMessage(BTS.ReceiveFileName);
    Then %SourceFileName% macro will work at send port.
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • I can't comment on foxnews. Same problem with IE, FF and Chrome.

    I can't comment on foxnews. Same problem with all three browsers IE, FF and Chrome. The login does not appear on the right hand corner and the comment link does not appear on any article. I already checked to ensure cookies and 3rd party cookies were enabled. I've gone to DISQUS, but it won't let me login there either...doesn't recognize my ID or email addy. Suggestions?.

    It appears they've shut down all commenting due to the troll antics on the site. The pornographic images they were posting and the racial attacks (among other things) when posing as conservatives may well have caused this. The Disqus filter wasn't effective in that it is easy to get around. Too bad as it was a great place to vent.

  • HT5622 I have 2 iPads in the same household with different addresses and I get my wife's emails which I don't want , she doesn't get mine , what is the problem

    I have 2 iPads in same household with different email addresses , I have just set up my wife's one and her emails are coming to both address why is that, as her details are not on my machine and vice versa, help

    You must have added your wide's email account in the Settings app.
    Settings > Mail, Contacts, Calendars > select on your wife's email account > scroll down to Delete and delete her account from your iPad.

  • SAP ProductCosting in parallel by plant (same company) with ECC6.0 and EHP5

    Hi SAP Community,
    I did hear rumours that with ECC6.0 and EHP5 it is possible to execute product costing per plant in parallel, even the plants belong to the same company code. Currently, the lock is on company code level, means if I try to create a second background job with a plant belonging to the same company code, I am getting an error message.
    I checked the SAP release notes for EHP5 but didnt find any direct related information.
    Thanks

    Hi,
       Did you check note 1415153 ? This seems to explain the new functionality
    regards
    Waman

  • TS3274 If I am standing in the same place with my ipad and my iphone why does my iphone show me more wifi bars then my iPad?

    Why do both apple devices have different amount of wifi bars in the same location?

    If the mail carrier use the mail type called pop3 then when mails are downloaed to a device they are removed from the server unless one set in the settings they are not to be so
    If your carrier support the newer types of mail called imap or exchange this will not be the case check if they do
    Or look in the settings for a leave on server

Maybe you are looking for

  • Print lock- how does it work

    Hi all, How can I set print lock on invoice? In EA40 it is not possible, so my assumption is that somewhere during billing/invoicing, but where? Other thing is, when this lock is set, then where it should be checked? I mean is it checked by SAP code

  • WQL Query for Last Policy Request

    I'm trying to create a collection based on workstations whose last policy request was more than 30 days ago and I'm having trouble with the query statement.  Any help would be greatly appreciated.

  • Using os 10 yosemite. My mail fails to go beyond end of august. I pad shows email up to date

    am using os 10.10.1 yosemite. My mail fails to display beyond the end of august '14. my iPad shows email up to date. What's up?

  • Not able to update Lenovo Bluetooth dirver for Windows 7

    Need help.... I can''t update the latest Lenovo ThinkPad Bluetooth with Enhanced Data Rate Software'in my X200 with Windows 7.  However, it requires to uninstall the apps from the X200 1st, but I cant find the software apps in Control Pannel - Progra

  • Configure E-Mail Notification with several smtp servers

    Hi all,     We want to configure "reset password" and we must configure E-Mail notification.As http://help.sap.com/saphelp_nw2004s/helpdata/en/44/bf8f2069665991e10000000a422035/content.htm shown,we can "Separate multiple SMTP server entries with a se