Search found 494 matches

by Kukurykus
Sat Dec 03, 2022 12:57 am
Forum: Help Me
Topic: Save as JPEG in origin image folder with custom prefix in the name
Replies: 1
Views: 15

Re: Save as JPEG in origin image folder with custom prefix in the name

Code: Select all

if (documents.length) {
	(jpg = JPEGSaveOptions)
	.quality = 12; with(activeDocument)
		saveAs(File(path + '/_' + name), jpg, true),
		close(SaveOptions.DONOTSAVECHANGES)
}
by Kukurykus
Tue Nov 01, 2022 2:55 pm
Forum: Photoshop Scripts
Topic: Image Processor with PNG support
Replies: 3
Views: 2690

Re: Image Processor with PNG support

I have updated Mike Hale post of the lacking attachement, taken from: Image Processor with PNG support
by Kukurykus
Tue Nov 01, 2022 10:24 am
Forum: Photoshop Scripting - General Discussion
Topic: Do people post scripts here in VBscipt?
Replies: 1
Views: 281

Re: Do people post scripts here in VBscipt?

This is not official Adobe forums if you mean that. It's Photoshop restored scripting forum founded originally by Mike Hale . The scripting language for Photoshop is ExtendScript, that is adapted to Ps (and other Adobe apps) from obsolete JavaScript version. That's true VBScript is much less popular...
by Kukurykus
Tue Oct 18, 2022 1:03 pm
Forum: Help Me
Topic: Adding a suffix to a filename in an action
Replies: 8
Views: 387

Re: Adding a suffix to a filename in an action

Thanks to action I could realise what I know but forgot as I never need to use SaveForWeb. It adapts spaces to URL's by changing space to hyphen: String.prototype.rplc = function(v1, v2){return this.split(v1).join(v2)} with(File('/d/' + activeDocument.name.rplc(' ', '-') + '.jpg')) rename(name.rplc(...
by Kukurykus
Tue Oct 18, 2022 11:05 am
Forum: Help Me
Topic: Adding a suffix to a filename in an action
Replies: 8
Views: 387

Re: Adding a suffix to a filename in an action

with(File('/d/' + activeDocument.name + '.jpg')) rename(decodeURI(name).split(' copy') .join('_LowRes_Preview')) If you are on Windows, save the above code to 'Presets / Scripts' of your Photoshop folder, as LstStp.jsx. (Re)launch app and from your Actions contextual dropdown menu choose 'Select Me...
by Kukurykus
Tue Oct 18, 2022 4:53 am
Forum: Help Me
Topic: Adding a suffix to a filename in an action
Replies: 8
Views: 387

Re: Adding a suffix to a filename in an action

I guess the SaveForWeb action step is automatic and uses always same path? If so paste this path, so the extra script step is going to rename it.
by Kukurykus
Mon Oct 17, 2022 10:08 pm
Forum: Help Me
Topic: Adding a suffix to a filename in an action
Replies: 8
Views: 387

Re: Adding a suffix to a filename in an action

Is the saved document, so the original you use to make a duplicate from, located in the same folder as your webforweb output? If so the last step of your action can be used for script that is going to rename exported file to what you want. The base is the relation of original path to resultant.
by Kukurykus
Mon Oct 17, 2022 5:16 am
Forum: Help Me
Topic: Animation from scratches
Replies: 7
Views: 243

Re: Animation from scratches

Ah okay, I understand finally. It can be done but it's not ususal request.
by Kukurykus
Sun Oct 16, 2022 7:27 pm
Forum: Help Me
Topic: Animation from scratches
Replies: 7
Views: 243

Re: Animation from scratches

Loll, I asked the question and your answer doesn't help. I don't understand which of two scenarios you talk about.

I also don't know what you mean by original file. Is it PSD file with many layers which have to be used to create GIF?
by Kukurykus
Sun Oct 16, 2022 6:25 pm
Forum: Help Me
Topic: Animation from scratches
Replies: 7
Views: 243

Re: Animation from scratches

Do you want to make a GIF by script - programmatically reproduce manual process, or you want Photoshop script to paint scratches from scratch?