Background saving via script?  CS6/CC?

Any suggestions out there for getting script to save a file, in the background?
When you have your preferences set ON to  Edit > Preferences > File handling > Save In Background, and you save a file by selecting File > SaveAs   ... the file saves in the background so you can continue working.  Great! 
...BUT...
When you do that same action via script... activeDocument.saveAs() I get an annoying progress bar,  which inhibits being able to work while the save is running.   This makes an autosave script that is supposed to silently run, saving files in the background every few minutes while I work, kinda useless.
Any ideas on how to turn that progress bar dialog off?   So Photoshop behaves the same as if I selected SaveAs in the menu??
I Do have app.displayDialogs = DialogModes.NO;  but it seems to do no good.
suggestions welcome.

Thanks for the reply Davide,
Yes, I've noticed when I run the save process via ANY other way,  (regular action run, DOM ExtendScripted, Action Manger scripted, AS3 CS6)  - it always has the progress bar.
This just seems to be one of those things that I just can't do automatically the same way as if you just pushed "Cntrl-S". Save in Background - is a great feature.  Now if only it could be done through automation...   Anyone else have any luck?

Similar Messages

  • Background Saving

    Does anyone know if it will be possible in cs6 to script the background save and continue working or will it tie up photoshop until the script is done.  Also, is there any code that could release photoshop while a script is running? Any help would be...helpful.

    Save in Background does not work when saving via script...?? right?  is there a setting you can have to make it save in background?
    When you have your preferences set ON to  Edit > Preferences > File handling > Save In Background, and you save a file the normal way, File > SaveAs   ... the file saves in the background so you can continue working.  Great! 
    ...  BUT....
    When you do that same action via script... activeDocument.saveAs() I get an annoying progress bar,  which inhibits being able to work while the save is running.
    Any ideas on how to turn that progress bar dialog off?   I want the save in the background, just like if I selected the menu.
    ( app.displayDialogs = DialogModes.NO; does no good.)
    Suggestions welcome.  Thankyou!

  • Background saving bug CS6 (stalls)

    Background saving bug CS6
    Problem:
    1. Was Editing a rather large and complex file, 16bit, 1,6GB
    2. Pressed ctr+s to save the progress
    3. Immediately launched a 3rd party plugin, Niksoft Define 2 (I mean with two keyboard shortcuts in a row, within seconds of each other)
    4. Plugin started
    5. Background saving got stuck at 0% and went nowehere as the plugin launched.
    6. No progress on the background saving after the plugin exited, and not able to save as a new file because PS said it was already saving the file. After 20 minutes still no progress. Taskmanager showed PS using 0% CPU and no disk i/o activity even though it stated it was saving.
    Workaround
    1. Duplicated the entire psb to a new file inside photoshop.
    2. Saved and it worked fine.
    3. Had to terminate photoshop via the task manager as it wouldnt let me exit "before file saving was complete".
    My workflow here was probably a bit quick and "incosiderate", but I would still consider this behaviour  a PS bug - I mean whats the use of background saving if it stalls when you are doing other tasks. Anyone else experienced this?
    (OS W7 x64+PS CS6 EXT)

    I have experienced this bug many times and it is very frustrating. There is no pattern to when it will happen it just happens out of the blue, I work full time commercially in 8, 16 and 32 bit regularly, file sizes averaging 5gb sometimes much larger and the bug has occurred in all these instances. I have however made these observations:
    The original PS version with bg save had this fault and to my knowledge there was no easy work around apart from a very laborious process of Scripts/Export layers to files. Any duplication and resave of the document did not work as it was held in a queue behind the first file stuck on 0%
    The next version of PS, CC and possibly first release of 2014, had a work around as suggested by someone else, by simply duplicating the file and saving. This would then jump the queue of the first file which was stuck on 0%.
    The latest version of CC 2014 updated a couple of days ago has resorted to the first patten, i.e. duplicate and save but stuck in the queue, thus no work around.
    This is a very serious problem which has gone on a bit too long. I am prompted to write this because it happened to me again last night whilst working on a 6gb 32bit render layer file, costing me a fair bit of time and effort on a commercial job.
    I always use bg save and 10mins recovery, when the problem occurs I am able to use PS as if nothing has happened but unfortunately cannot save, I am thus forced to force quit the application. Unfortunately in this instance the force quit is not seen by PS as a crash and therefore offers no file recovery. What I think we need is the following:
    The ability to force abort a save of the stuck file so that we can save another.
    The ability to access background saved files even if PS has not actually crashed, this would have saved me last night.
    In addition, a 5-10gb file takes a while to background save, during this save I cannot make a smart object. I would like to be able to pause a save so that I can make the smart object and then carry on my work whilst the save continues. This applies to recovery save also.
    Adobe please help us out and address the problem.
    Many thanks, Mark.

  • Writing commands to get specific data channels in the output report via script or automated script generation..

    In my project I have to make certain calculation and then get the data plotted in the given report template. I am using automated script for this. My script is doing all the calculations and then it not selecting and drag-dropping the selected channels on the report template. Its saving the blank report template.
    I am struggling to get the data for specific channels plotted by using the script. I need the selected channels to be plotted on this report template and then get it saved.
    Any help will be deeply appreciated. Thanks
    Solved!
    Go to Solution.

    Hi LaxG,
    Brad is absolute right. It is possible to create your whole layout via script.
    If you have loaded  the example report layout you can copy these lines to create a new line in your plot. This is the recommended object oriented way.
    call Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Add(e2DShapeLine, "anyName")
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.XChannel.Reference               = "[1]/Zeit"
    Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape.YChannel.Reference               = "[1]/Geschwindigkeit"
    For performance reasons it's recommended to use the it like this.
    dim oLine
    set oLine = Report.Sheets("Blatt 1").Objects("2D-Axis1").Curves2D.Item("anyName").Shape
    oLine.XChannel.Reference               = "[1]/Zeit"
    oLine.YChannel.Reference               = "[1]/Geschwindigkeit"
    Like Brad mentioned it is much easier, that you have a stored template of your report with all setings and customisations already done.
    You open this layout file and have stored the names of your calculated channels. When you are doing this with a script they always have the same name and belong to the same group.
    Now you can customize the references of the line items.
    Kind Regards,
    Philipp K.
    AE | NI Germany

  • Set filename of printed PDF via script

    Hi folks!
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    The script within Acrobat is finished and working. I thought, the InDesign script is finished ,too. But I was wrong -.-
    I merged the databasefile with the document and exported it as PDF. But after exporting, we noticed that the script within Acrobat isn't finding the adressheader where the ID is in. The script only noticed the text after that header. The result is, that Acrobat get's always "null" as ID
    If we print the PDF with our PDFprinter, the header could be read by our Acrobat script. I don't know why this is... But now I changed the script to print the files via our PDF printer. Unfortunately I can't set a name for my exported file - do you know if there is a possibility to print PDF's without prompting after each one and with a via script given name?
    Here you can see the old script for InDesign and right after it, the Acrobat sript. Maybe I made some mistake by generating my PDFexport and don't need to use the printer?
    INDESIGN SCRIPT:
      * prompts filebrowser and stores name and path of file in variable
    var sourceDocument = File.openDialog("Bitte Indesign-Dokument auswählen", "*.indd", false);
      * stores only prefix of filename for use as new filename
    var newName = sourceDocument.name.substr(0,  sourceDocument.name.length-5);
      * stores folder where file is stored
    var dbSourceFolder = sourceDocument.parent+"/";
      * prompts for databasefile where generating should begin
    var dbstartfile = File.openDialog("Bitte Start-Datenbankdatei auswählen", "*.txt", false);
      * gets basename of databasefile
    var dbstartfilename = dbstartfile.name.slice(0, dbstartfile.name.search(/_Teil+/));
      * gets number of first databasefile
    var i = dbstartfile.name.slice(dbstartfile.name.search(/_Teil+/)+5).slice(0, -4);
      * generates path name and name of first databasefile to use
    var dbSource = dbstartfile;
       *set PDF preset for generating PDF
    var PDFPreset= app.pdfExportPresets.item("GAG-PDF");
       * stops throwing of alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    // if databasefile isn't existing message will be thrown
    if( dbSource.exists == false ) {
        // restart of alert throwing
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        alert("Datei " + dbSourceFolder+dbprefix+"_Teil"+i+".txt konnte nicht gefunden werden! \n\rBitte starten Sie den Vorgang erneut und geben Sie die richtige Datenbankdatei an." );
    // else process starts
    else {
        while(  dbSource.exists == true ) {
            // opens source indesign document without showing it
            mergeDocument = app.open(File(sourceDocument), false);
            // sets which databasefile should be used for data merge
            mergeDocument.dataMergeProperties.selectDataSource(File(dbSource));
            // starts merging of indesign document and database file
            mergeDocument.dataMergeProperties.mergeRecords();
            // exports generated document as PDF file
            app.activeDocument.exportFile(ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
            // closes opened indesign document
            mergeDocument.close(SaveOptions.no);
            i++;
            // change filename of database file to get next file
            dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    // restart of alert throwing
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    alert("PDF-Generierung abgeschlossen!");
    ACROBAT SCRIPT:
    * Path where files should be saved
    * Special Characters like spaces should be escaped with \
    * If you want to modify the folder, use following form:
    * "/Driveletter/Foldername/../LastFolderName/"
    * Make sure not to forget the / before and after the location
    var filepath = "/c/pdf_split_test/";
    * Number of expose pages - feel free to change
    var pageType = app.prompt("Bitte geben Sie die gewünschte Seitenzahl der Exposés an.", "");
    alert(pageType);
    * regular expression for search
    var idNumber = /08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;
    * if possible this function extracts the searched number as string
    * @param rematch string which should be searched in document
    * @return null if rematch is not found or string if rematch is found
    function ExtractFromDocument(reMatch) {
      try {
             var Out = new Object();
             for (var i = 0; i < 1; i++)
              numWords = this.getPageNumWords(i);
              var PageText = "";
              for (var j = 0; j < 30;j++) {
                  var word = this.getPageNthWord(i,j,false);
                  PageText += word;
              var strMatches = PageText.match(reMatch);
              if (strMatches == null) continue;
          return strMatches;
      } catch(e)
          app.alert("Processing error: "+e)
    * tries to load given filename (extracted number)
    * @param filename string of file which should be checked
    * @param n number to iterate while checking for files
    * @return true if file exists or false if not
    function checkIfFileExists(filename, n) {
        var existingDoc = false;
        try {
            if( n == 0) {
                var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
            } else {
                var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
            checkDoc.closeDoc();
            existingDoc = true;
        } catch (e) {
        if( existingDoc == true ) {
            n = n+1;
            n = checkIfFileExists(filename, n);
        return n;
    var pageAmount = this.numPages;
    for( i=0; i<pageAmount; i+pageType ) {
        var filename = ExtractFromDocument(idNumber);
        fileExistence = checkIfFileExists(filename, 0);
        if(fileExistence != 0) {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000_"+fileExistence+".pdf"}); 
        } else {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000.pdf"});
        this.deletePages({nStart:0, nEnd: pageType-1});

    Hi,
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    Why you don't export 6-page PDFs directly from InDesign?
    robin
    www.adobescripts.co.uk

  • Saving issues with CS6

    Is there an issue with saving in InDesign CS6?  I keep trying to want to "Save" after I make a slight change and the software keeps trying to "Save As" and create a new file.  I will not allow me to save over the old file and it's annoying the hell out of me. 

    No 3rd party plug-ins.  I don't have any utilities running in the background.
    The read only issue I think is the reason.  I'll check on it and get back to you on what I find. 
    If this is the cause, then would this be a bug with ID?  Why would a file I created on an accessible drive on my desktop or server open up as a "Read Only"? 

  • Change medium (e.g. A4,...) via scripting

    Hi all,
    is it possible to change the medium (e.g. A4, A4color,...) of a form-output via scripting (initialisation) in the LifeCycle Designer?
    Thanks a lot.
    Regards Marc

    Hi Neelima,
    I tried implementing the same in the Save Badi. Still no success.
    I guess this is standard bug, I deactivated all my badi implementation and test the standard feature.
    I went to the Output tab, by default it was Email and I changed it to XML in the screen.
    when i save the PO document . it saved.
    But , we opened it again in display or edit mode.  It is again defaulted to EMAIL .
    Just an information :
    Note 1072367 - No output medium identified error even if medium selected.
    This note is released with manual correction for SRM_SERVER Ver 6 and say
    this is has been included in the SRM_SERVER 7 version.
    This piece of correction is not available in our system.
    I guess this  might be a standard bug ? Please suggest me .
    Best regards,
    Prabhu

  • To which folder does OSX background saved TextEdit recovery files?

    Hi, while traveling without an internet connection I workd on a TextEdit file which was probably saved in the background automatically as a temp recovery file...somehow I lost the file, whether through a failed iCloud synch upon returning home or whatever...I think though that I may have backedup my system with Time Machine before losing the file altogether. Could a background recovery version of it be in a folder accessible through Time Machine?
    (By a background saved recovery file I mean the temp TextEdit file which in the event of a crash or system restart would allow the file to be recovered.)
    Thanks

    sorry...was exhausted, will rewrite more clearly

  • How to find a text in the Frame maker document via script?

    How to find a particular text in the Frame maker document via script?

    johnsyns wrote:
    Why it doesn't work for the other days? When i tried to change the days other than wednesday. it return nothing.
    Reason why Justin's code does not work for other days is date format mask DAY returns day blank padded to 9 characters which is the longest day name which, yes you guessed right, is WEDNESDAY. You either need to blank pad or use format modifier FM:
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY'
      5  /
    no rows selected
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'DAY') = 'TUESDAY  '
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> select *
      2    from (SELECT TO_DATE(SYSDATE+ROWNUM, 'DD-MON-YY') dt
      3            FROM DUAL CONNECT BY ROWNUM <= 27)
      4  WHERE TO_CHAR(dt,'FMDAY') = 'TUESDAY'
      5  /
    DT
    07-APR-09
    14-APR-09
    21-APR-09
    28-APR-09
    SQL> SY.

  • Is it possible to modify the tag structure tree and the role map via scripting?

    We use unstructured FrameMaker to produce training materials which we distribute as tagged PDF to meet accessibility requirements.
    When FrameMaker creates a tagged PDF, it does a fairly good job of populating the structure based on the PDF setup information for the paragraph formats in the FrameMaker documents. However, there are some limitations in the support that FrameMaker provides. For example, almost all paragraphs are assigned to the P role even if they are headings and should be mapped to H1-H6.
    We want to be able to easily post-process a PDF that has been generated from FrameMaker to fix some of the tag structure issues (including tag names and the role map) so that the PDF will provide the optimum experience for a user of the JAWS screen reader.
    I spent some time reading the SDK documentation but didn't find much information about manipulating a tagged PDF via the API, especially via scripting.
    Does anyone have any examples or references which explain how to do it?

    AFAIK, it's not possible with a script. You might want to ask in the SDK forum, as it could be possible with a plugin.

  • How to determine installed version of EMET via script?

    Hi all,
    I was not able to find a easy way to determine installed verison of EMET via script. If you can guide me in the right direction, this would help a lot.
    Many thanks
    Sam

    This is probably not the right forum for scripting questions and you didn't specify which script you (want to) use... Below you can find some examples...
    If you use VBscript you could use WMI and query the class Win32_Product:
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
    Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product where Name like '%EMET%'")
    For Each objSoftware in colSoftware
    Wscript.Echo "Name: " & objSoftware.Name
    Wscript.Echo "Version: " & objSoftware.Version
    Next
    This method is not advisable because the class isn't optimized for queries and therefore the query takes a long time!
    You can also use the Windows Installer object:
    Option Explicit
    ' Connect to Windows Installer object
    Dim installer
    Set installer = Wscript.CreateObject("WindowsInstaller.Installer")
    Dim product, products
    Set products = installer.Products
    For Each product In products
    if instr(1,installer.ProductInfo(product, "InstalledProductName"), "EMET", vbTextCompare) > 0 AND instr(1,installer.ProductInfo(product, "Publisher"), "Microsoft", vbTextCompare) > 0 then
    Wscript.Echo installer.ProductInfo(product, "InstalledProductName")
    Wscript.Echo installer.ProductInfo(product, "VersionString")
    End If
    Next
    Set products = Nothing
    Set installer = Nothing
    Wscript.Quit 0
    This method enumerates all the products but be aware that you should also check the installstate because the installstate of a product also can be advertised.
    You can also use powershell to enumerate the uninstall registry keys but you have take into account that the results may be different on a 64-bit Windows and the bitness of the powershell proces:
    gci "hklm:\software\microsoft\windows\currentversion\uninstall" | foreach { gp $_.PSPath } | select DisplayVersion,DisplayName | where { $_.DisplayName -match "^EMET*" }
    You can also install and use the
    Windows Installer PowerShell Module and use this command:
    get-msiproductinfo | where { $_.Name -like '*EMET*' } | select ProductName,ProductVersion  | format-list
    On the internet you can find a lot of information about your question. For instance I found these pages:
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/15/use-powershell-to-find-installed-software.aspx
    http://blogs.technet.com/b/alexshev/archive/2008/06/30/from-msi-to-wix-part-17-windows-installer-automation-interface-part-2.aspx
    W. Spu

  • Why are my video edits not being saved on Photoshop CS6?

    Why are my video edits not being saved on Photoshop CS6?
    I made a TON of edits in a video group, then duplicated that group into another file... and all my edits are gone.
    I spent hours working on this, so please let me know what the hell happened and how I can make sure it never happens again...
    also--why would CS6 come with such a devastating feature?!?! Who came up with this???

    Welcome to the forum.
    I did not see any reference to Save, Save_As, or Save_As_a_Copy. Did you use one of those?
    Good luck,
    Hunt

  • Bug: Setting "Don't include footnotes" via scripting doesn't change the find/change dialog

    Hi,
    Small bug, but can be confusing. Whether you write this line:
    app.findChangeTextOptions.includeFootnotes = false;
    or this line:
    app.findChangeTextOptions.includeFootnotes = true;
    ... you won't see any different in the little footnotes button in the
    find/replace dialog, even though the setting does work via scripting.
    More testing is needed to see what can be done to get the UI in sync
    with the setting...
    Ariel

    The dialog isn't updated while it's displayed. But hiding the dialog and displaying it again (twice Ctrl+F) shows that the script did do its thing.
    Peter

  • ITunes Music Locations - controlling workstations remotely via script?

    I do storage administration at a company with over 2000 users scattered across the globe. Predictably, at least have use iTunes. We redirect the "My Documents" folder to a network location to force the backup of critical project data. This creates a huge problem for us. iTunes defaults to using the My Music folder in My Documents. This means we are storing and backing up at least 1TB of music.
    I have found that iTunes stores its configuration in xml files in the application data directory in the user profile. I cannot readily figure out where in this file the location is recorded.
    Has anyone confronted this problem, and if so, is there a way to control iTunes installs remotely to set the music folder location, via script, GPO or anything at all?

    The library location is indeed stored in the iTunesPrefs.xml file. Look for the key "iTunes Library Location:1".
    But I have a script that almost does what you want. Here is the perl source:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.txt
    Here is a compiled EXE for it:
    http://home.comcast.net/~teridon73/itunesscripts/itunesopenlibrary.zip
    Anyway, the script basically works by setting the library location to a path that you pass to it. It does so by updating the iTunesPrefs.xml file. This file is very small, so you shouldn't need to worry about it!
    Of course, the script only works if the iTunesPrefs.xml file already exists. It would be nice if you could include a template iTunesPrefs.xml in your new user creation/login script. If the path is the same for every user, well, then you're done I guess.
    If not, you can run the script to set the path to what you really want it to be.
    Existing users are a different story. You can run my script to change the library location, of course. But then you also have to move their existing library file and their music back to that location. Well, you don't have to; you can make the users do it themselves! Also, I don't know if that will work as I haven't tested it.
    I haven't fully explained everything, but I don't have time right now. I hope at least I've given you some ideas. Of course the optimum solution is an Apple-provide GPO you could use. You can try asking apple for it via either a bugreport (if you have an ADC account), or the feedback page for iTunes:
    http://www.apple.com/feedback/itunesapp.html
    Rob

  • How do I enable a Java plug-in via script that was just added to the blocklist?

    I need to enable Java 6u29 that was just added to the blocklist via script because there are several thousand end-nodes involved. Also, I am constrained to Firefox 3.6 due application compatibility issues.

    Probably the only or easiest way to remove or disable the blocklist of older Java versions would be to disable blocklisting by locking the extensions.blocklist.enabled to false via a mozilla.cfg file.<br />
    You are already running a no longer supported Firefox 3.6.x version that won't receive updates.
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    lockPref("extensions.blocklist.enabled", false);
    *http://kb.mozillazine.org/extensions.blocklist.enabled

Maybe you are looking for