• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Progressive Save As New Jpeg

New Here ,
Oct 24, 2012 Oct 24, 2012

Copy link to clipboard

Copied

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

TOPICS
Actions and scripting

Views

4.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Oct 24, 2012 Oct 24, 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

Votes

Translate

Translate
Valorous Hero , Oct 25, 2012 Oct 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" );
va

...

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 24, 2012 Oct 24, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 25, 2012 Oct 25, 2012

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2012 Oct 25, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2012 Oct 25, 2012

Copy link to clipboard

Copied

So I tried this, and for some reason it's not working....

I opened the Bridge script above in the script coding window and it didn't like: it said

autoSave.onSelect = function () {

"undefined not an object"

I ran the AutoSave script in Photoshop, and that worked just fine.

I tried capitalizing the AutoSave.onSelect to see if it needed to match the file name, but that didn't help. I also tried changing the file path at the end, I'm running a 64 bit version of CS6, so the path isn't the same, I didn't know if that would make a difference.

Ideas?

Thanks


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 25, 2012 Oct 25, 2012

Copy link to clipboard

Copied

The code is correct and should not need any changes.

What program are you using to paste the code into? this can make a huge difference as a lot of editors will add control characters. The best program to use is "ExtendSript Toolkit" this gets installed with Photoshop.

The code has been tested with Bridge CS6 64bit and Photoshop CS6 64bit (OS Windows 7)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2012 Oct 25, 2012

Copy link to clipboard

Copied

LATEST

Ok, so I figured it out.


Earlier I had done it with notepad, which was fine, that was not my problem. I did it again with the ExtendScript Toolkit and it made no difference, the thing is that I didn't realize you had to start the script with that great button you created in the toolbar. I thought that since it was a startup script it would simply run on startup. Ooops!

Thanks so much. Works perfectly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines