Skip to main content
Participant
October 24, 2012
Answered

Progressive Save As New Jpeg

  • October 24, 2012
  • 1 reply
  • 5048 views

I want to track my progress on a project by saving it every 5-10 seconds as a new jpeg. Obviously I could just stop and do it myself, but this would get really tedious. I also want the jpegs to be sequentially numbered based on the file name. So I would end up with a folder of jpegs named filename_1 to however many just based on how long the program was open. I have never done anything with scripts, so I have no idea if this could even be accomplished, but I would really appreciate the help if you know how it could be done.

I did a screen capture, but then quality is compromised, and it zooms when I do, and I would like it to be more uniform in size.

I want to make them into a time lapse video.

I hope everything was clear and I really appreciate your help.

Thanks in advance!

ps, I'm working on a pc

This topic has been closed for replies.
Correct answer Paul Riggott

That would work Christoph.

xaris3762 if you want to automate this you could save the above script as AutoSave.jsx in the presets/scripts folder.

Then install this code in Bridge..

Start Bridge

Edit - Preferences -Startup Scripts

At the bottom click the "Reveal Button" this will open the folder where the script should be placed.

Close and restart Bridge.

Accept the new script.

if( BridgeTalk.appName == "bridge" ) { 
var newMenuAS = new MenuElement( "menu", "Auto Save", "after Help", "myAutoSave" );
var autoSave= new MenuElement( "command", "PS Auto Save", "at the end of myAutoSave" , "AutoSave" );
}
autoSave.onSelect = function () {
savePSDocument = function(){
var bt = new BridgeTalk();
bt.target = "photoshop";
bt.body = "var PSsave = " + PSSave.toSource() + "; PSsave();";
bt.send();
}
TopBar = app.document.navbars.filesystem.top;
TopBar.height = 30;
TopBar.visible = true;
TopBar.bu1 = TopBar.add ('button',[5,5,300,25],'Stop Auto Save');
//every 10 seconds
id = app.scheduleTask( "savePSDocument()", 10000, true );
TopBar.bu1.onClick=function(){
    app.cancelTask (id);
   TopBar.visible = false;
    }

function PSSave(){
var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var saveFile = new File(SCRIPTS_FOLDER + "/AutoSave.jsx");
$.evalFile (saveFile);
    }
};

You can the run this scrip and it will run the Photoshop script every 10 seconds until you stop it in Bridge.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
October 25, 2012

Paul Riggott has offered a Script that might fit your needs over at

http://ps-scripts.com/bb/viewtopic.php?f=9&t=5011&sid=38631f69dd317afce3990192d72bf9d2

Paul Riggott
Paul RiggottCorrect answer
Inspiring
October 25, 2012

That would work Christoph.

xaris3762 if you want to automate this you could save the above script as AutoSave.jsx in the presets/scripts folder.

Then install this code in Bridge..

Start Bridge

Edit - Preferences -Startup Scripts

At the bottom click the "Reveal Button" this will open the folder where the script should be placed.

Close and restart Bridge.

Accept the new script.

if( BridgeTalk.appName == "bridge" ) { 
var newMenuAS = new MenuElement( "menu", "Auto Save", "after Help", "myAutoSave" );
var autoSave= new MenuElement( "command", "PS Auto Save", "at the end of myAutoSave" , "AutoSave" );
}
autoSave.onSelect = function () {
savePSDocument = function(){
var bt = new BridgeTalk();
bt.target = "photoshop";
bt.body = "var PSsave = " + PSSave.toSource() + "; PSsave();";
bt.send();
}
TopBar = app.document.navbars.filesystem.top;
TopBar.height = 30;
TopBar.visible = true;
TopBar.bu1 = TopBar.add ('button',[5,5,300,25],'Stop Auto Save');
//every 10 seconds
id = app.scheduleTask( "savePSDocument()", 10000, true );
TopBar.bu1.onClick=function(){
    app.cancelTask (id);
   TopBar.visible = false;
    }

function PSSave(){
var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var saveFile = new File(SCRIPTS_FOLDER + "/AutoSave.jsx");
$.evalFile (saveFile);
    }
};

You can the run this scrip and it will run the Photoshop script every 10 seconds until you stop it in Bridge.

xaris3762Author
Participant
October 25, 2012

Thanks so much, I knew there had to be a way to do it