Photoshop SCRIPTS – write them without coding skills!
YouTube transcript, YouTube translate
A quick preview of the first subtitles so you know what the video covers.
Usually, after editing a photo, I spend time saving the image in different formats: Full Size JPEG for the archive, a layered PSD file for students on Boosty and Patreon, a JPEG compressed to 2560 pixels on the long side for Telegram and other social media. And I can also create a before-and-after file. On average, all these actions take about a minute, but I hacked Photoshop. I just click on the action.multisave, and in the window that opens, I specify exactly which formats I need, and poof, they appear in the folder with the processed files. And this action contains only one command. It launches a script consisting of 354 lines of code that I wrote without knowing any programming languages. Hello YouTube, Maxim Gustarev here. And today we'll talk about what scripts are and how to write them without coding skills. Of course, we'll create a script from scratch, analyze many errors you might encounter, and I'll share my best scripts. Get your cookies, pour some tea, and let's go! But first, a little theory. Imagine you need to create a copy of a layer in an open document. You select the layer, press Command J, and a copy is created. If you need another copy, you can press Command J again. But what if you need not two, not five, but, say, fifty copies? In that case, clicking Command J fifty times, you'll agree, will make your finger fall off. It's much better to write an instruction that Photoshop will understand. Photoshop, make me fifty copies of the background layer. But something tells me that Photoshop simply won't understand such a command because it's written in human language. The language Photoshop understands will look like this. And if you look closely, it means: apply the duplicate function to the active document, to the active layer, and repeat it 50 times using a loop. From this tiny piece of code alone, you can see that we can perform various actions—duplicating, copying, inverting, and other operations—on the active document, the active layer, or a layer named "Curves." Everything that exists in Photoshop, well,