Save all snapshots of history in the form of files

I admit, I love save snapshots of history! Sometimes, I want to save them in a file later once the image has been closed.

I wrote an action to save the 10 current snapshots on the files. It works fine with the following limitations:

(1) she recorded only 10 snapshots (it is easily developed if necessary)

(2) the snapshots must be named 'Snapshot 1', 'Snapshot 2"etc.

This action does not work if the snapshot has a different name.

Does anyone know of a script that is similar?

Here is a sample of the recorded text action steps:

Set: Save First 10 History Snapshots to File
  Action: Save First 10 History Snapshots to File
  Select snapshot “Snapshot 1”
  Make document
  Using: Current History State
  Save
  Close
  Select snapshot “Snapshot 2”
  Make document
  Using: Current History State
  Save
  Close

This script will save all snapshots in a folder called instant out of the paths of documents, each file is saved as a jpg with the name of the snapshot file.

#target photoshop;
app.bringToFront();
main();
function main(){
if(!documents.length) return;
try{
    var Path = activeDocument.path;
    }catch(err){
        alert("You save your document before running this script!");
        return;
        }
var doc = app.activeDocument;
var now = doc.activeHistoryState;
var Snaps = snapShotList();
var outputFolder = Folder(Path + "/snapshots");
if(!outputFolder.exists) outputFolder.create();
for (var z in Snaps){
    revertNamedSnapshot(Snaps[z]);
    var saveFile = File(outputFolder + "/" + Snaps[z].toString().replace(/\./g,'_') + ".jpg");
    SaveForWeb(saveFile,80);
    }
doc.activeHistoryState = now;
};

function SaveForWeb(saveFile,jpegQuality) {
var sfwOptions = new ExportOptionsSaveForWeb();
   sfwOptions.format = SaveDocumentType.JPEG;
   sfwOptions.includeProfile = false;
   sfwOptions.interlaced = 0;
   sfwOptions.optimized = true;
   sfwOptions.quality = jpegQuality;
activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
};
function snapShotList(){
var doc = app.activeDocument;
var hs = doc.historyStates;
var now = doc.activeHistoryState;
var Name = new Array();
for(var a =0;a  
         

Tags: Photoshop

Similar Questions

  • Can I convert a playlist of songs imported in the form of files in format MP3 ACC in order to burn a MP3 disc?

    I'm burning a playlist composed of ITunes store downloads and downloads of CDs which all have been imported in the form of files such as MP3 ACC disc.  I realized that somewhere along the way I would be prompted to convert files, but my system iTunes just says that it can't burn ACC files without any conversion option.  What, on the contrary, I am missing to allow me to convert the files so I can burn an MP3 disc?  Thank you.

    Dick

    12 iTunes for Mac: save a copy of a song in a new file format - http://support.apple.com/kb/PH19509 - make sure that you are not using the full screen - https://discussions.apple.com/thread/6777547

  • How to save pictures of Photos in the form of files without losing the GPS data?

    Hello!

    Can someone advice me in the following cases:

    I want to erase my Photos from iPhone and iMac. Before that, I wish I had pictures of my library of Photos saved as a regular directory with files. As Windows does, for example.

    Can someone tell me how to save all Photos in the form of files without losing the GPS data? Thank you!

    Just export them (File menu) in unmodified versions.

  • Is there a reason to save the original NEF files after import for the LR in the form of files 'convert to DNG?  Is there a reason to save the two versions?  The NAVE seems to have no further use other than too much hard drive space.

    Is there a reason to save the original NEF files after import for the LR in the form of files 'convert to DNG?  Why save versions when the DNG is the original and the NAVE seems to just take remote hard drive space?

    I see no reason to keep them, they take a lot of space, one of the reasons to convert to DNG is that they are almost 20% smaller than the ships.

    But it is of course your choice...

  • a fatal error has occurred and the execution of the application took end. Adobe Captivate one attempts to save all of your work in the respective folders of the project as files cpbackup

    Hello

    We have Adobe Captivate installed 8.0.0.145 Windows 7 x 64 v.

    Activate Adobe crashes with the following error: a fatal error has occurred and the execution of the application took end. Adobe Captivate one attempts to save all of your work in the respective folders of the project as cpbackup files.

    I uninstalled Adobe Acptivate, rebooted the PC and reinstalled activate Adobe - unresolved error.

    I have cleared the cache under settings, clear the cache - unresolved error.

    Please notify.

    Kind regards

    George


    The update should be available to help, updated. It is available since October 2014.

    Being administrator is not the same thing as Captivate running as an administrator that must be put in place in the menu right click on the shortcut that launches Captivate. You have restricted functionality if this is not done.

    I told you how to clear preferences, with the file Utils. First close Captivate, when you restart CP will create a new preferences folder.

    If you have a lot of customization that you will lose when the erasing of the preferences. To keep them, have a look at my blog:

    Captivate 8.0.1 Install? Keep your customization! -Captivate Blog

    Layouts folder is located in the public Documents. It is a copy of the original folder in the gallery. Same thing with the Interactions.

  • Preparation fresh reinstall of Windows XP. Wish to save all settings display; computer desktop, taskbar to desktop, files, etc.

    Preparation fresh reinstall of xp.  Wish to save all settings display; computer desktop, taskbar to desktop, files, etc.

    Reinstalls previous, I had to do this through trial & error to get it the way I prefer it.  I tried to manually copy the display properties and then reset after reinstalling them, but sequence must be just right to get it the way I like it, & some steps is still missing

    THX

    First create a backup of your hard disk Image. If you then restore the image as you can.

    Free alternatives:
    EASEUS Todo Backup Home V3
    (Note: Todo Install, then create a diskette "emergency" before you start creating your first image backup)
    http://www.TODO-backup.com/

    ============================================================================

    How to make a backup of your registry: http://support.microsoft.com/kb/322756

    Can not say that restoring the registry will do what you want but the Image backup, you will have at your having previously worked copy of XP

    ============ Tweak UI ================================

    Try Tweak UI Power Toy from Microsoft: http://windows.microsoft.com/en-US/windows/downloads/windows-xpInstall,

    run and under logon, you will find checkboxes to select the accounts to display and automatic logon you can choose to enable/disable it by cheque or unchecking the "automatically connect" option.

    TweakUI is a tool very useful and relatively safe for most of the users because they
    don't need to use the registry editor or other methods less obvious to do
    changes to Windows.

    More details on the features available in Tweak UI:
    http://www.winxpsolution.com/Tweakuixppro.aspx

    J W Stuart: http://www.pagestart.com

  • How to remove the Save dialog box before you close the form?

    Hi all

    I've created a form that will open a data connection to a button click.

    I get the error on failure and the code to close my form of app.execMenuItem ("Close");

    but a save dialog box appears before I can close.

    (maybe because I did something on the opening form),

    It is able to remove it? Or simply impossible?

    Best rgds.

    Hmmm,

    What happens if you add?

    Event.Target.Dirty = false;

    app.execMenuItem ("Close");

  • I recently started to receive bank statements in the form of files PDF - can open and see them just fine, but how can I save to a folder on my computer?

    I have recently started to receive bank statements in the form of PDF files - can open and read files fine, but how can I save the files to a folder on my computer?

    The best way is to right click (Ctrl-click on Mac) on the url that you use to save the file on your computer. If you have a pdf file open in your browser, move your icon to the bottom of the screen, there should be a contextual toolbar. Click the floppy disk icon to save the file.

  • ALL my downloads come in the form of HTML files. What have I done?

    Whenever I have download any file, it opens on my computor in the form of HTML files and I can't change it to the TEXT.  What can I do to change this setting?

    What browser you use, and how you download to use? Do you have any download managers installed on your PC?

  • Question of the history of the Windows 8 files

    I know that historical files backup (in the library) where it backs up. If I have "Keep the saved Versions" value "1 month" and I do not connect my computer to the disc for a month it will eventually remove all previous backups, or it will at least keep a? " I work for a society of development, where we need to know exactly how works history of files and the documentation is not clear on this.

    Also, is there anyway to set up the 'Clean Up Versions' Autorun utility?

    Thank you in advanced for your help!

    I know that historical files backup (in the library) where it backs up.

    Technically false.  Historical files backs up only files that have changed since the last time he got a backup.  It will not needlessly copy the same file again if there is nothing new about the file, which would be just lose all space on your disk backup with additional duplicates.

    If I have "Keep the saved Versions" value "1 month" and I do not connect my computer to the disc for a month it will eventually remove all previous backups, or it will at least keep a? "

    If you have the game to keep the Versions recorded at 1 month and won't connect to the computer for a month, the next time that a backup of the file history is running, this new backup will be the only current backup on the destination disk (because everything else was older than the limit and cleaned when the backup ran).

    Also, is there anyway to set up the 'Clean Up Versions' Autorun utility?

    It cleans automatically when the work of the history of the files is running, so it's "Yes, it is already."  It will clean according to your "keep recorded versions" setting.  If you use "until the space is necessary", he will keep as much as possible and clean only when it is necessary to adapt the next backup set.

  • Replacing the forms and file reports on LIKE, mapped session user error

    Hi all

    We have an ERP that runs on the environment of the OAS when the user are saved in and administrator wants to replace any file form or reports. Do not ALLOW to replace file and give the message of session mapped user while in the client/server environment, we did the same thing. For this update, we must stop shape services or kill user session, and then replace the file.
    Other methods ppl you suggest without downing shape services.

    Rashid

    For Forms services, you can add the following setting in your default.env.

    Add a new line:
    FORMS_MMAP = FALSE
    The above allows you to compile a fmx, while the form runs.

    However, take a look this: http://orafrm.blogspot.com/2007/07/formsmmap.html

  • Snapshot deletion failed, remove the instant vmdk files?

    We have a 2 TB data store that became close to completely full. I tried to delete a snapshot that got to 95% the data store completely filled and then pretty much killed the server.

    There are 2 drives on a data store. The disk system (Server.vmdk) is 50 GB and the second disc (Server_1.vmdk) is 1.95 GB

    I managed to get the operational return server to convert the system disk to a new virtual machine (Server_New.vmdk) on another data store, removal of the original vmdk in the data store complete and then adding a second drive that points to Server_1.vmdk

    As far as I can tell everything is everything works fine and it's not like there are any missing files so I am happy with that. One thing I couldn't confirm if I can delete the snapshot files. I'm pretty confident that I can remove them without causing problems, but I'd love to get confirmation from someone who knows what they are doing.

    I've looked through the vmware.log file and don't see any mention of server_1 - 000001.vmdk or 000002.vmdk - server_1. Also in browser data store, the modification date and time is 20 minutes before server_new.vmdk and server_1.vmdk and these times coincide fairly well with when I converted to the virtual machine.

    If anyone can confirm that these files from snapshots can be deleted safely, it would be greatly appreciated.

    If the snapshot is attached to a VM voltage you will not be able to delete in file locking in the data store Navigator. If ca you remove it, then it is not attached and I guess it's safe. Another way is I rename and then see if there is any impact, otherwise it is then safe to remove

  • Confused about in the form of files

    Hello

    I use a .AS file to store a custom class defined by the employee (extension to an existing class or not).  I have no problem with that, but what about when I store a LOT of classes in the same .AS file?  I understand that I must make the file .AS part of a [custom] package.  If I understand the manual, we can only use one instance of the Public specifier within a .AS file (or is that what the package itself?), so that a class can be accessed externally.  Fix?  If so, it must define a custom namespace that would apply to the properties and methods in the writing classes in the .AS file packed.  Am lost here?  Thus, instead of referencing methods/properties closed via a class name, I'd do it through the custom namespace {for example, mynamespace::myMethod() ;}}  Fix?

    Kind regards

    Ron

    Not many advanced users use either custom namespaces.

  • Fill in the form of file data

    I have a pdf page as I created.  I have the same fields in an Excel worksheet.  What I need to do, is use the data in the worksheet and fill in the pdf document.  The Final PDF document must be several pages of the same pdf file each page filled with the data in each row of the pdf file.  That is to say.  line 1 will be on the page, on a line two page two.  etc.  Can I convert data into xml or what to do.  I have adobe CS5 of the ave.  Acrobat 9 Pro, livecycle.  I have been told I can do that with ColdFusion, but I didn't do it.  Please notify

    I described an approach here: http://forums.adobe.com/message/3189754#3189754

  • Change request - of research and history of the form

    Hello

    Firefox options are currently set to include a check box for "Remember search and form history.» I would ask that it be amended in two separate boxes: "Remember Search History" and "Remember shape history."

    Why? Because some people want one but not both. I want to be able to fill out forms quickly to sites I frequent. But I don't want the bar to regurgitate search expressions that I'm looking for is more research. Research and forms are different situations and should be treated as such.

    Thank you.

    Hello

    The people who answer questions here are for the most part, other users Firefox dedicating volunteer their time (like me), not employees of Mozilla or Firefox developers.

    If you want to leave a comment for the developers of Firefox, you can go:

    • Help (or Menu

      >

      ) > 'Submit your comments... '. »

    Or use this link. Your comments gets collected at http://input.mozilla.org/, where a team of people read it and collect data on the most common questions.

Maybe you are looking for