Hi,
I'm looking for a way to overwrite a specific file on my filesystem, saving as a copy when necessary even if the file is open and the active document - but without any user intervention. This is something that used to be easy but no longer seems possible with an action (something they changed in newer versions of CC?).
What I have right now is just taken from their reference (Apple script):
tell application "Adobe Photoshop CC 2019"<br> <br> set myDocument to current document<br> set myFile to "System:Users:thomaspecht:2D:bitmaps:tmp.bmp" as string<br> <br> set myOptions to ¬<br> {class:BMP save options, bits per sample:twenty four, save alpha channels:false, target operating system:Windows}<br> <br> save myDocument in file myFile as BMP with options ¬<br> myOptions appending no extension without copying<br> <br>end tell
When I run this it gives me a file dialog, tells me that I need to save with copy, then I have to click away the file overwrite confirmation and finally it presents me with the file options which I thought would be taken care of with the 'set myOptions to' paragraph. Worst of all worlds combined, yeah!
Is it possible to condense this into a simple no-questions-asked affair?
Edit: can't seem to find anything in the scripting reference for that 'without copying' part. No difference either way when run though.
Replies