1
00:00:00,660 --> 00:00:01,500
All right, welcome back.

2
00:00:01,650 --> 00:00:07,980
So in this video, we're I talk about script events manager, so let's go to file and click on scripts

3
00:00:08,460 --> 00:00:10,650
and go down to script events manager.

4
00:00:11,670 --> 00:00:15,020
Now, we need to enable events to run scripts and action.

5
00:00:15,030 --> 00:00:16,000
Someone to click on.

6
00:00:16,200 --> 00:00:17,400
Yes, let's enable it.

7
00:00:18,450 --> 00:00:20,550
And so now you have a couple events here.

8
00:00:21,360 --> 00:00:29,540
So Photoshop event, when we start the application, new documents, open documents, start save documents,

9
00:00:29,540 --> 00:00:36,390
save document, close document, print, document, export, document, everything at an event.

10
00:00:36,500 --> 00:00:36,770
OK.

11
00:00:36,900 --> 00:00:38,010
So we can add an event.

12
00:00:38,700 --> 00:00:40,800
So what we're going to do first is start application.

13
00:00:41,640 --> 00:00:42,150
So.

14
00:00:45,370 --> 00:00:46,960
The script is clean listener.

15
00:00:47,140 --> 00:00:48,580
So let's display.

16
00:00:54,030 --> 00:00:55,270
All right, so let's try this.

17
00:00:55,750 --> 00:00:59,570
So the event is start application and then the script is welcome.

18
00:00:59,600 --> 00:01:02,020
Show a simple alert when Photoshop starts.

19
00:01:02,830 --> 00:01:05,100
So let's hit Ad Guy.

20
00:01:06,280 --> 00:01:07,480
And then I had done.

21
00:01:08,140 --> 00:01:10,720
And what we're gonna do is we're going to close these.

22
00:01:11,260 --> 00:01:12,490
We're gonna close Photoshop.

23
00:01:14,260 --> 00:01:18,130
And then I'm going to click on Photoshop right here and let's see if it does that.

24
00:01:22,010 --> 00:01:26,540
You've successfully configured an event triggering a JavaScript.

25
00:01:27,050 --> 00:01:27,680
There you go.

26
00:01:27,980 --> 00:01:28,730
So it worked.

27
00:01:30,170 --> 00:01:36,410
So let's go to Open and let's open up scripts one real quick and then go to file and do the scripts.

28
00:01:36,890 --> 00:01:38,060
And let's try one more.

29
00:01:40,460 --> 00:01:41,060
It's kind of fun.

30
00:01:41,760 --> 00:01:41,960
All right.

31
00:01:42,050 --> 00:01:45,200
So for a new document, let's.

32
00:01:51,070 --> 00:01:51,910
Do the same thing.

33
00:01:51,960 --> 00:01:56,200
Let's sort the welcome scripts or had add and then had done.

34
00:01:59,400 --> 00:02:04,800
So when I create a new document, you successfully configured an event triggering a JavaScript.

35
00:02:05,340 --> 00:02:06,180
So, again, it.

36
00:02:06,750 --> 00:02:10,710
It triggered the event that we added somewhat close that.

37
00:02:11,960 --> 00:02:13,710
And let's look at one more thing here.

38
00:02:14,430 --> 00:02:20,390
So if I go back to the Scripps event manager, open documents.

39
00:02:24,000 --> 00:02:31,950
We can open his layer, resize display camera maker, let's to resize, so pop the image size dialogue,

40
00:02:32,450 --> 00:02:34,950
pre populate the menu with 100 by 100 pixels.

41
00:02:36,600 --> 00:02:37,840
OK, that's fine, let's try that.

42
00:02:37,890 --> 00:02:41,620
So when we open a document, it's going to resize.

43
00:02:41,700 --> 00:02:42,570
So let's have done.

44
00:02:43,530 --> 00:02:44,880
So let's open up.

45
00:02:45,630 --> 00:02:46,440
I think it's.

46
00:02:48,270 --> 00:02:51,210
Let's go to kittens and let's go to kitten report one.

47
00:02:53,130 --> 00:02:53,700
There you go.

48
00:02:54,030 --> 00:02:55,050
So now what it's going to do.

49
00:02:55,080 --> 00:02:56,460
So that's the script that we ran.

50
00:02:56,520 --> 00:03:00,090
So every time we open that up, it's going to default.

51
00:03:00,420 --> 00:03:02,570
One hundred pixels by one hundred pixels of a head.

52
00:03:02,640 --> 00:03:06,360
OK, then our little kitten is one hundred pixels by one hundred pixels.

53
00:03:08,860 --> 00:03:09,380
There you go.

54
00:03:09,410 --> 00:03:10,010
Pretty cool.

55
00:03:10,400 --> 00:03:13,220
So that is the script events manager.

56
00:03:15,080 --> 00:03:16,160
So thanks for watching.

57
00:03:16,220 --> 00:03:17,210
I'll see in the next video.
