Search found 32 matches

by Scriptor
Fri Oct 03, 2025 6:02 am
Forum: Photoshop Scripting - General Discussion
Topic: Script to Remove "Description" tag/metadata in PSD/PSB?
Replies: 8
Views: 36280

Re: Script to Remove "Description" tag/metadata in PSD/PSB?

I just do it like this, I might be missing the point though since this only clears the value and doesn't erase the tag...

Code: Select all

app.activeDocument.info.caption = "";
app.activeDocument.close(SaveOptions.SAVECHANGES);
by Scriptor
Thu Oct 02, 2025 12:21 pm
Forum: Photoshop Scripting - General Discussion
Topic: Type to find and toolbar options for scripts/actions
Replies: 2
Views: 20820

Re: Type to find and toolbar options for scripts/actions

Sure. Put this all into a .jsx-file, record an action where you play said jsx through "File" > "Scripts" > "Browse...", and set a shortcut (eg. F2 or whatever). Each time you press F2 you'll get this script, and you can play whatever set/action (or script if you use the...
by Scriptor
Fri Sep 26, 2025 7:04 am
Forum: Photoshop Scripting - General Discussion
Topic: Localize buttons makes them squared inside group
Replies: 5
Views: 26516

Re: Localize buttons makes them squared inside group

I recommend using this tool for styling, then placing your code in/around the dialouge as you see fit:
https://scriptui.joonas.me/

Makes the whole process much more efficient.
Alex_Builder.png
Alex_Builder.png (1.45 MiB) Viewed 2243 times
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: 22996

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. OK, moving files can be done but it's slow as heck...
by Scriptor
Mon Oct 14, 2024 11:43 am
Forum: Help Me
Topic: List all files in folder and subfolders
Replies: 4
Views: 25997

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: 18556

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: 147528

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: 147528

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: 11687

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: 11687

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...