Search found 528 matches

by Kukurykus
Wed Dec 21, 2022 8:49 am
Forum: Help Me
Topic: Insert image in Photoshop
Replies: 11
Views: 3567

Re: Insert image in Photoshop

That's true - I didn't want to make it complex by calculations and extra code, so I used alternate but simple method to get the same.
by Kukurykus
Tue Dec 20, 2022 3:46 pm
Forum: Help Me
Topic: Insert image in Photoshop
Replies: 11
Views: 3567

Re: Insert image in Photoshop

Honestly I wasn't sure what you exactly want so I shared a sample of 'something' to see how you're going to respond ;) icn = "\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009...
by Kukurykus
Tue Dec 20, 2022 2:06 pm
Forum: Help Me
Topic: Insert image in Photoshop
Replies: 11
Views: 3567

Re: Insert image in Photoshop

(win = new Window('dialog')).add('iconbutton', undefined, String("\u0089PNG\r\n\x1A\n\x00\x00\x00\rIHDR\x00\x00\x00\x15\x00\x00\x00\x15\b\x02\x00\x00\x00&u2\u00C1\x00\x00\x00\tpHYs\x00\x00\x0B\x13\x00\x00\x0B\x13\x01\x00\u009A\u009C\x18\x00\x00\x019iCCPPhotoshop ICC profile\x00\x00x\u00DA\...
by Kukurykus
Sun Dec 11, 2022 9:56 am
Forum: Automation & Image Workflow
Topic: Need a script to Time Track
Replies: 1
Views: 4397

Re: Need a script to Time Track

Do you mean you do all by hand, or everything is scripted, so you only need extra command to count the time?

It it is not manaual job then put at beginning of your script:

Code: Select all

$.hiresTimer
then after every finished part:

Code: Select all

alert($.hiresTimer / 1000000)

Ps. Need a script to Time Track
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: 916

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: 4
Views: 6320

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

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

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

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

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.