Background save large files via script?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

PhotoSpot_scripter

Background save large files via script?

Post by PhotoSpot_scripter »

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 large file saves in the background so you can continue working. Great!
but
When you do that same action via script... activeDocument.saveAs() with a large file, 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? 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.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

undavide

Background save large files via script?

Post by undavide »

Hello,
I might be wrong but this very behavior - the overriding of the Save in Background option - happens when the Save command is played from an Action too, so it is possibly as designed.
For some reason background tasks seem to be disabled: might that be because of the "asynchronous" nature of such operations? Just wondering, but I don't really know!
Cheers

Davide Barranca
---
http://www.davidebarranca.com
http://www.cs-extensions.com
PhotoSpot_scripter

Background save large files via script?

Post by PhotoSpot_scripter »

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?