Search found 8 matches

by dpaintArexx
Mon Dec 30, 2024 8:20 pm
Forum: Photoshop Scripting - General Discussion
Topic: Please help me with the script
Replies: 6
Views: 82935

Re: Please help me with the script

Interesting that it only worked in English version. That is good to know.

Anyway, when the script fails.. What do the source images look like?
by dpaintArexx
Mon Dec 30, 2024 2:10 pm
Forum: Photoshop Scripting - General Discussion
Topic: Please help me with the script
Replies: 6
Views: 82935

Re: Please help me with the script

Hi,

I tried in a more recent version Photoshop 2024 on macOs. And it ran as expected.

What is your process for running the script?

You will need to have an active image open, then:
File -> Scripts -> Browse... <Select the script file>
by dpaintArexx
Tue Dec 17, 2024 10:25 pm
Forum: Photoshop Scripting - General Discussion
Topic: Please help me with the script
Replies: 6
Views: 82935

Re: Please help me with the script

The result below comes from the provided script using your example jpg as the source. The result may vary depending on your setup (it was tested on an older version of PS) and any actual content on the white papers. There where some white parts in the upper left corner edge of the image that had to ...
by dpaintArexx
Thu Dec 12, 2024 9:07 am
Forum: Photoshop Scripting Bugs and Anomalies
Topic: fileObj.length on .psb files return 0 or -1
Replies: 0
Views: 28106

fileObj.length on .psb files return 0 or -1

Hi, When trying to access the length property of a File object, large .psb files return 0 or -1 instead of the byte value. This dispite of the file being closed, as documented in the Javascript Tools Guide. // LARGE PSB FILE 1GB+ var fileObj = new File("../path/myFile.psb"); fileObj.close(...
by dpaintArexx
Tue Nov 21, 2023 10:56 am
Forum: Help Me
Topic: Photoshop to Spine Script - customising the settings?
Replies: 5
Views: 15587

Re: Photoshop to Spine Script - customising the settings?

Here is a quick fork that will check if layers are divisible by 16, resize and export the pngs.

I do not have Spine, however, and I haven't checked if the numbers in the JSON are messed up. That would break the rig, of course.

PhotoshopToSpine_20231121-1136.zip
(15.74 KiB) Downloaded 523 times
by dpaintArexx
Wed Nov 15, 2023 3:58 pm
Forum: Photoshop Scripting - General Discussion
Topic: activeDocument.saveAs opens dialog
Replies: 3
Views: 11571

Re: activeDocument.saveAs opens dialog

Oh, yes, that makes sense. Thanks for pointing me to those articles.

The test localFile.copy(networkFile) was done with a fairly small dummy psd, so I will try to use system-calls if problems occur on larger files.
by dpaintArexx
Tue Nov 14, 2023 1:15 pm
Forum: Photoshop Scripting - General Discussion
Topic: activeDocument.saveAs opens dialog
Replies: 3
Views: 11571

Re: activeDocument.saveAs opens dialog

I did found a workaround:

Code: Select all

var localFile = new File("~/Desktop/localFile.psd");
var networkFile = new File("/Volumes/home/Projects/networkFile.psd");
activeDocument.saveAs(localFile, myPsdSaveOptions, true);
localFile.copy(networkFile);
by dpaintArexx
Tue Nov 14, 2023 12:54 pm
Forum: Photoshop Scripting - General Discussion
Topic: activeDocument.saveAs opens dialog
Replies: 3
Views: 11571

activeDocument.saveAs opens dialog

Hi everyone, I use activeDocument.saveAs() supplied with a File- and psdSaveOptions object. It works fine and silently when saving to a local hard disk. But when the file object points to a network drive, I am greeted with a "Save As"-dialog. Any clues to why this happens? var networkFolde...