Search found 29 matches

by Scriptor
Tue Oct 29, 2024 10:12 am
Forum: Help Me
Topic: Using 4 characters of folder name to move with contents
Replies: 1
Views: 7922

Re: Using 4 characters of folder name to move with contents

Hey! Based on the example given, I think you're better off with doing this in eg. powershell or a .bat-script. Photoshop Javascript doesn't support moving of files & folders.
by Scriptor
Mon Oct 14, 2024 11:43 am
Forum: Help Me
Topic: List all files in folder and subfolders
Replies: 4
Views: 9400

Re: List all files in folder and subfolders

This works better though: function main() { var folder = Folder.selectDialog("Select a folder to list files from"); var RW_destination = folder; if (!folder) return; var includePaths = confirm("Do you want to include file paths in the results?"); var fileList = []; getFileList(fo...
by Scriptor
Mon Oct 14, 2024 11:40 am
Forum: Help Me
Topic: Define variable names for data set based on layer names
Replies: 1
Views: 4082

Re: Define variable names for data set based on layer names

Is this kind of what you're looking for? function hideShowLayersByName(nameString, visibilityFlag) { var doc = app.activeDocument; // Get the active document var layers = []; // Array to store layers // Function to recursively add all layers to the array (includes layer sets) function getLayers(laye...
by Scriptor
Thu Sep 26, 2024 12:56 pm
Forum: Automation & Image Workflow
Topic: Question about matching color between images
Replies: 2
Views: 41114

Re: Question about matching color between images

Nothing shiny, but it does a job - there's room for MASSIVE improvement - please help out if you find it useful: // Function to get all layer names in a document function getLayerNames(doc) { var layers = []; for (var i = 0; i < doc.layers.length; i++) { layers.push(doc.layers[i].name); } return lay...
by Scriptor
Thu Sep 19, 2024 9:37 am
Forum: Automation & Image Workflow
Topic: Question about matching color between images
Replies: 2
Views: 41114

Re: Question about matching color between images

I am also looking for something similar to this. A coworker of mine apparently worked with a guy that did more or less what you're asking for, so it should be possible. I've asked him multiple time for the contact to that guy but he cannot remember his name etc... For the past couple of days I've be...
by Scriptor
Tue Jan 31, 2023 8:02 am
Forum: Help Me
Topic: This HAND TOOL !!!!
Replies: 8
Views: 9639

Re: This HAND TOOL !!!!

Aw dang. Noted. If the natural/added light were constant across the images I'd say copy the changes directly from one to another and use curves to match the brightness. But that's not the case. Hm. I am unsure if evern ScriptingListener will help you, but here's a startingpoint: http://www.earthboun...
by Scriptor
Mon Jan 30, 2023 2:15 pm
Forum: Help Me
Topic: This HAND TOOL !!!!
Replies: 8
Views: 9639

Re: This HAND TOOL !!!!

Alright, I see your problem. An alternative workflow would be to use a separate layer that you draw on with the brush tool. Then you set the action to make a selection of the said layer, delete layer then run "content aware fill" on the areas you've marked. This would in theory get you the...
by Scriptor
Mon Jan 30, 2023 12:27 pm
Forum: Help Me
Topic: This HAND TOOL !!!!
Replies: 8
Views: 9639

Re: This HAND TOOL !!!!

Hey! No problem, always happy to help. I see. Well - I am not aware of any way of doing that. You might find ScriptingListener to be of use, but I am unsure of the result matches your expectations since that can be a whole hassle in itself to use. But let me ask you this: what requires you to record...
by Scriptor
Mon Jan 30, 2023 7:52 am
Forum: Help Me
Topic: This HAND TOOL !!!!
Replies: 8
Views: 9639

Re: This HAND TOOL !!!!

Hey! I've never used JS to create/modify an action but what's stopping you from just deleting the "use hand" from the action directly? Drag them down to the recyclebin in the actions panel and you should be all set - no need for a complicated script to do so..? Also - if you don't want the...
by Scriptor
Mon Sep 12, 2022 8:58 am
Forum: Help Me
Topic: Script to add filename to file info?
Replies: 6
Views: 5013

Re: Script to add filename to file info?

The same as you used previous scripts? Save these codes to separate .jsx files, one as Reader, second as Writer. You may then copy them to 'Presets / Scripts' folder of your Photoshop, so after relaunching the application you'll have access to them from 'File / Scipts' menu. You can also, instead o...