 In this video, we're going to be looking at how you can use the Shortcuts app on your Mac to work with images. Now, this is part of a series of videos I'm doing all about the Shortcuts app, so be sure to check out the rest of those videos. I'll leave a full list of them down in the description. Now, today, I thought we'd do two things, really. One of them is look at how you can resize images with the Shortcuts app, and the other is how you can add watermarks to your images with shortcuts. And although we are only tackling two things, there will actually be lots of different components of shortcuts to learn in here. So, I thought there were two good examples. We're going to see how you can use Shortcuts within a Shortcut. We're going to see how you can share shortcuts and various other things as well. So, let's get straight into it. And I've started with a blank canvas, and we've just created a new shortcut. So, I'm not going to go through all of that process. If you're unfamiliar with the Shortcuts app itself, be sure to check out the rest of those videos. This is video 7 in this introductory series. So, there are some more in advance of this... Before this, rather, I should say, to get familiarized with the interface and so on. So, anyway, with that said, let's just get into it. So, I'm going to give this a name, and I'm going to call this Resize Image. So, this is the name of our shortcut. I get that capitalization sorted out. Resize Image. And what we're going to do here is we want to have a workflow where I tend to work in the Finder, in the File Manager, if you like, but this could equally work with the Photos app itself on the Mac. And I'll just sort of explain how you can decipher between those two. But what I'm going to want to do is I'm going to want to have, say, I've got a folder with some images. So, here, I've got two images. This is my Franken Deck, my Stream Deck and Loop Deck. By the way, I'll be making a video all about this. But here, you can see this is the image, and we can see the image size over here as well. Happens to be, if my little zoom function will work, I have one second, there we go, 1440 by 1440. So, what we want to do is have an action that we can use to basically just switch this up and change the size of it. So, the way that you can work with shortcuts is you can either trigger them from the Stream Deck, see video five. You can trigger them from the menu bar up at the top, see video one. Or you can trigger them from the Finder itself. So, for example, if I right-click, you can see that we get access here to these quick actions. And here, once we create these shortcuts, we have the option to add them in here. So, this seems like the most logical place for me to actually install this shortcut. So that, basically, if I'm looking at this image and I say, okay, I want to resize that, then I'll just be able to right-click, come down here to the Quick Action, and then look for the shortcut that we're going to create to resize the image. Obviously, we can then also assign a hotkey to it to make this a lot quicker. But for now, that's what we are going to do. So, coming back to our blank canvas, what we want to do in here is, if we come over to these little controls over on the top right here, we can choose where this is going to be activated from. So, we can either have it in the menu bar, but if we want to, we can actually use it as a quick action. And I want to activate it from the Finder, not so bothered about it being a services menu as such. So, that's the only place that I want this to be activated. As I say, we can easily add a keyboard shortcut a bit later if we want. But for now, I'm just going to activate it from that Quick Action menu. So, you'll notice that now that I've actually added that in, it has already put this first little action step in. And that's basically saying it's going to receive any input from the Quick Actions. So, that's meaning it's going to use that as the starting point for whatever actions come later. We are talking about image resizing, though. And so, it is good to actually specify exactly what we are doing here. So, what I'm going to do in here is rather than say, receive any input from the Quick Action, we do just want to limit this to images. So, if you remember, anything in blue is something that we have the option to change or adjust maybe a parameter that we can set. So, I'm going to come in here to where it says any and I'm going to click on that one. And you can see that there are all of these different types of input that potentially it might have. It might be URLs. It might be contacts, dates, or what have you. But we are only interested in this case in images. So, what I'm going to do is just click on clear, which will uncheck all of those boxes. Now, click in there again and just select images. So, now we are only going to be using this. And this will only, in fact, be available for images. Now, if there is no input when somebody tries to trigger it. So, say, for example, we did have the keyboard shortcut assigned, but there was no actual image selected. What would happen in that instance? Well, you may want it to be that they could actually choose the image that they want to resize at that point instead. So, if there is no input, you can see we're being prompted here, what should we do? Now, this one is saying continue. So, that means just carry on with the rest of the process. But obviously, that would be a bit pointless to resize nothing. So, let's click on this and see what other options we've got. And this is the one that we want. You could either get it from the clipboard. So, if it wasn't selected, then we might have just copied an image so we could get it from there. Or, there's this one ask for. So, and stop would be just, it just stops the process. But we want this one ask for, and it's going to ask for photos. Now, what that means is it's going to actually ask for photos from your gallery, your photo picker, I should say, from the photos app. But in this case, I am working with files. And so, although it says photos, and you might think that that means images, that is actually, as I say, referring to the photos app. And I specifically want to be able to pick a photo file or an image file. So, I do want to change that to files. It's a bit of a distinction, but one of them will bring up the photos photo picker. And the other one will bring up the standard sort of dialogue window where you can search for a particular file in the finder. So, that's what I want because I want to be able to pick these manually out of the finder. Okay, so, as I've said before, it's always a good practice to get into the habit of giving everything a variable name. So, I am just going to do that, even though this is going to start off as a short, little shortcut. It will get more complex as we go along. Not complex, actually, just a lot of simple steps. So, let's take that word complexity out of it, shall we? It's just going to be a lot of simple steps. And I'm going to take you through them step by step. So, what we want to do here is set variable. So, and by the way, that thing about complexity. A lot of things look complex. If you look at the overall finished thing. So, I've been building houses in Thailand for, well, over 10 years. Not so much lately, I have to say. I've been too busy doing other things. But one of the things about that is when you've got a full finished house, you mind boggles as to where you would even start to either build it or design it. But actually, it's all just a series of simple steps. So, this is much the same. And we're starting here with the foundations. There you go. Look at that for a link back to that analogy. We're starting here with the foundations of something that we're going to build out later on, which will appear on the outside to be more complex. But as I say, just a series of simple steps. I'm waffling now. Let me get on with this. So, I'm going to call this the image because this is the image in question. And I'm going to use this sort of terminology or nomenclature if you like. A lot going forward where we're giving these things specific names. So, this is the image that we are working with. We'll come on to this as well when we start adding in watermarks and things like that. It's going to be good to be clear about the way that we name things and our naming convention. So, this is the image and it is going to take this shortcut input from here. And what we want to do now is we want to actually resize this image. This is the point of this shortcut. So, what I'm going to do is I'm going to come over to the little search box, the handy search box. You can often find lots of things in here. So, I'm going to just type in resize. You can, by the way, add these two favorites and have a list of favorites. So, just let me just touch on that once again. You can search by... I've talked about this in the first video, but you can search by location, different scripting shortcuts, document-related shortcuts, media-related shortcuts, and so on, and you can actually assign favorites as well. But I often find it's just as quick to just use the search box and just search for what you want. So, another little diversion there. But there we go, resize image. I'm going to add that in. It has just actually, because this is the sort of next step, you can see how it has put in that variable there, so we are resizing the image, which is what we call that input, and then the size. So, we can actually change the size, or we could change it to a percentage of its original size, or we could do something related to the longest edge. So, if you were trying to fit something into a particular square, you might not know whether the thing was portrait or landscape. You just need to know it's going to fit within that particular square, so you might want to choose the longest edge. But I'm going to be more specific about that and just call it size, because then you can see that it's already put in a figure for us here. But if I was to take that out, you can see it's given us the width and the height, and we're just going to put in the size that we want. So, let me just put in 500 auto height, so that means it will set the width to 500 and then keep the aspect ratio exactly the same and maintain that aspect ratio and just automatically calculate the height. If you put in a specific width and a specific height, you may end up with some things where they end up, like, squashed vertically or horizontally. So, usually best to leave one of those as auto, so that you maintain the aspect ratio of the image aspect ratio, being the ratio of the width to the height. So, that is what we've done there. We've got the resized image now. So, now what we want to do is actually save that image. So, if I come here and I'm going to type save and we can find this one here. So, if I save file and then it's going to save the resized image like that. Now, let's have a look at how this works in practice. So, if I actually now just bring this over here, by the way, there's a few more steps that we need to add in to really make this work properly, but you'll see that as we go forward. But now what you can see is if I right click on here and I click in quick actions, you can see that we now have our little resize image shortcut is now showing up down there in that list. So, now I'm going to click on that and what it should do is it's going to pop up and it's going to ask me where I want to save it. So, I want to save it in this same folder. You can already see there's a couple of extra steps here. Click on OK and bingo, we've got our saved image and there it is. It has used the same file name. It's got the dash two because there are now two of them with the same file name. But if I come in to examine the details of these files, you can see that this one is now 500 by 500, whereas the other image, the original was 1440 by 1440. So, that is the resized image just there and it's obviously reduced the file size from 516 kilobytes to 96 kilobytes. So, that is basically how we can use that resize function. But let's try and be a little bit smarter with this, shall we? Because we can actually make this a little bit better. So, how are we going to make this a little bit better? Well, there's a couple of things really. We could have a much neater file name for a start. So, let's just work on that part, shall we? Now, it is always good to get into the habit of commenting as well. So, I think what we should do is just actually do a little bit of commenting in here just to make sure that we are understanding what we're doing going forward. So, if I just type in comment, then we can add in a little comment. So, here what we're doing, if I just drag this up to the top. So, we're getting an image, getting an image from the shortcut input. There we go and we're giving it a name. Next, what we want to do is we are going to resize the image. So, we have resized the image already, but I'm not going to save it just yet. I'm going to actually give that a variable name as well. So, I'm going to set variable. This might seem a bit overkill, but trust me, when you start doing more and more complicated things, it is a very good habit to get into. So, what I want to do is here resize. Because we've added this extra step in, you can see how it sort of broken this connection because it was just all flowing down. So, now we've got the image. We just want to click here and make sure we are resizing the image to that particular size. Now, we want to take that resized image and let's give that a variable name and we will call it resized image. By the way, with these, don't leave any spaces. So, you want to make sure that there are no spaces in your variable names. So, that one is called resized image. Let's just add another little comment in there. So, I'm going to just get a comment and here we are resizing the image. I'm going to show you at the end how to share your shortcuts. So, I will share these with you so that you can download them. So, these comments are as much for your benefit as well as my future self. So, this is where we are resizing the image. Now, what we want to do is we want to give it a name. So, rather than as we had in here, you can see how it just came up with this, the name of the original file dash two. We want to actually be more explicit about that and say, you know, it's the resized one. You could also even put in the size if you wanted. Now, in order to do that, we need to rename it but we need to know what we're going to rename it as well and so we're going to rename it with the same name as the original plus a little bit. So, in order to do that, we need to actually get the name of the original file. So, what I'm going to search for here is get name. So, we are looking for the name of that original file. So, get name of what? Well, we want to get name of the image. Whoops, Daisy, clicked the wrong one. Get name of the image. And I'm going to give this a variable name as well. So, set variable again. Bear in mind that these things, once you've built them, they're done for life. So, it seems like a little bit worked but once you get into the habit of it, then you can actually sort of fly through this stuff. So, get name of the image and set variable to let's call that image name like that. Always over eager with my capitalization there. And we're going to just take that input, basically the name of that image, that is now our variable image name. So, now what I want to do is, I want to basically set the name of this resized image. So, here let's just add in a little comment. Just so that we know what we're doing. This is getting the name of the original file. There we go. So, then what we want to do is we want to set the name of this resized image. So, this is set name. So, what do we want to set the name of? We want to set the name of resized image. I'm just falling off the bottom of the screen here. Let me just scroll this up a little bit so that you can still see it. So, what we want to set the name of, can we see that? Yes, is the resized image. And we want to set it to basically this new variable that we've got the image name. And then let's have underscore resize. So, then we're going to know that it is the resized image. Obviously, if you were doing this multiple different times, you may have an instance where you need to, for example, have a particular image. You want to create a particular size of it to use in one place and another image size to use in another. So, you might want to kind of chain these all together and then give it an actual name of the specific size rather than just call it resize. But for now, I'll just leave it like this and keep it relatively simple. So, now we've given it the name resize. And then let's give that the... So, that is setting the name of that resized image. So, now let's set a variable for that. And we're going to call this one renamed image. So, that will drop in the bottom renamed image. So, we've set the name of it and we've renamed it. So, let's just add that in as a comment like this. So, we're going to call that. Now, we have renamed resized image. And now we want to save that. So, this is the end of this little part. But let's have a look at what this is going to look like. So, we're going to click on save file. And we're going to save. What do we want to save? We want to save the renamed image. Okay. So, let's try this again now, shall we? Because now that we've completed that step, I'm going to just delete this one because we don't need that one anymore. Let's try and run this again. And we'll go to the Quick Actions. And we'll go to Resize Image. And what should happen with a bit of look is it will just check where we want to save it. In the next example, I'm going to show you how to just automate this process as well. But for now, I'll just leave it. So, click on that. And there you go. We've now got our two images, the original and then the original with that little addition on the end where it says underscore resize. And just to be extra clear about this, one of them is 500. And that one is the one that is resized, 500 by 500. And then the original is still the same original file name. And it is 1440 by 1440. So, let's just go and have a quick run through the steps that were involved in that shortcut then, just so that we can be absolutely clear about it. And then we'll move on to another example. So, what did we do there? We had an input that came from the Quick Action. So, we can activate that by right clicking on a file or an image. Well, actually, specifically an image. And we gave that a variable name as the image. So, we call that the image. Next, we actually took the image and we resized it. And we gave that new output a name of a resized image. So, that was another variable called the resized image. We then needed to rename it. So, we found the name of the original image and set that as a variable of image name. And then next, we took the resized image and we renamed it to the image name from the original image, underscore resize. I hope this is all making sense. And then, finally, we just took that and we saved it. And that was the little workflow. So, now we've got our little resize command and we can use that wherever we want. So, let's try and create another one. Now, just one little thing here. You remember, at the beginning, I went in and I had to select these to use as a Quick Action from the Finder. And if I come over to my list of shortcuts now, you'll notice that it isn't actually in the main part here. But if you look in these ones, Quick Actions, these are ones where Quick Actions have been assigned. And so, resize images is in there. Now, if you want ones that work with Quick Actions and you're creating a new action, you can. First of all, you can always just duplicate these if you want to sort of adjust an existing one. But you can also just click in the plus here and because you are in the Quick Action section, if I click on the plus, what you'll notice is if I come back to the editor, it has created a new action, but it's already got this first little step in signifying that it works with Quick Actions. So, if I just click on these little things again, by default, it has added it to the services menu. So, I actually do want this to work from the finder rather than services. So, I'm just going to adjust that. But what are we doing in this video? What we're going to do is we're going to look at how to add a watermark to an image. We're then going to look at how you could loop these things so that you basically could do this to multiple images. So, the example that we used just now with the resize image, this could equally be batch resize. So, you just basically highlight a whole list of photos or images and then trigger the action and it will go and resize them all. So, that's what we're going to look at with this with the watermark version. So, let's come and have another little look at my list of files and I'll show you what the intention is here. So, I'll come over to this view. I'm just going to delete this resized one because we don't actually need it. And I've got these two images and then I've also got this third image which is basically my little logo. Now, this is a transparency. So, you can see how it is a transparent PNG. So, I might want to use that where I could put it into the corner of my images as a little watermark. So, we're going to look at how to do that. So, the first step that we want to do is we want to take that input. In fact, let me just get a couple of things prepared here on the screen. Bear with me one second. And let's come back over to this view. So, what I'm going to do is I'm going to just do the same thing as we did before. We're going to take an image from the input. So, I just remember we come into here. We want to clear all of those. We want to select images because we're just working with images. And then if there is no input, I want to ask for a file rather than a photo. By the way, all of these, instead of asking for files, I could just be doing all of this within the Photos app. And in that case, you would just select that as photos. And I'll show you when we come to save, you can save it into photos instead into a particular gallery as opposed to the way I'm doing it, which is saving it into the Finder. I'm still in the file managing mode. I don't use the Photos app so much. So, in any case, that is the first little step. And as before, we're going to give this a variable name. So, I'm going to come over here and search for set variable. There we go. That's the one. And I'm going to call this the image. And next, what we want to do is, shall we comment this as well? Because this one's going to be a bit long and I will be sending this to you. Or rather, you can download it if you want it. So, here we are choosing an image that we will add a watermark to. Okay? So, that is the first step. That's what we're doing. We're taking this image and we're going to add the watermark to it. So, this is assuming that they're going to be able to select whichever image, or I'll say they. It's always me. Don't let other people come and use my computer. So, this is assuming that I will want to be able to select a file and add this watermark to it. But the watermark, in this case, will always be the same. In fact, let me just give this a name and I'll call it my take one tech. Watermark. Okay. So, now what we need to do is we need to get the image that we're going to use as the watermark. And as I've shown you, it is this image just here. I'm just keeping all of these in the same folder for now for simplicity. But obviously, you could be storing these in all different places, having it saving to different places and all that sort of business. But for now, I'll just leave them all in the same place so it's easy to see what's going on. So, what we want to do now is because that watermark image will always be the same, then in this case, then what I want to do is actually find a specific file. Again, if you were doing this from Photos app, then you could look for an image or a photo. So, you could find photo and then you could just pick the image that you want to use as your watermark out of photos instead. But I am using a specific file. So, this is going to get the file and then in here, I can click on this. And then it's opening up my little dialogue box to pick it out. So, there is the file that I want to use. Click on OK. So, that now has grabbed that file. So, now I want to give that a variable name as well. So, here I'm going to set variable. Once more and then this one, I'm going to call this the watermark. Okay, so now we've got two variables and I'll add a comment. This is our watermark. This is our watermark image. Like that. Spellings are chose just when I'm trying to talk at the same time. And that now, if I just do, I'll just do a little short run now. If I do the command which is overlay, overlay image. So, I can overlay image on image. So, the variables that we've got is I want to overlay the watermark onto the image. So, if I click in here and click on watermark and then click on here and click on image. Now, it's going to put that watermark on the image. Now, what I'm going to do is I'm just going to run this as it is to show you sort of how this is working so far. But there's a few steps that we're going to add into this to really make it much better. So, I'm going to start by just running this as it is though. Now, so that because I hadn't actually selected an image in the Finder, it's using this thing to actually prompt me to give it an image. So, I'm going to just select this one which is that particular image and now click on open. And now what it's doing is you can see how it's put the image over the top. Now, I do have the ability to move that watermark around on top of that image. And I also have the option to change the opacity like that or you can reset it and move it down there, let's say. And now if I click on done, you can see that it now has put out that image with the watermark on it. So, that's sort of showing how this overlay function works. But there are a few things that are wrong with this. First of all, the size of it and second of all, the position of it and then also we haven't got into anything of actually saving this out at all. Now, what we can do is if you always want to have the watermark, say down in the bottom corner or the top corner or wherever it happens to be, we can actually define that and we can also define the size of the watermark relative to the size of the overall image because sometimes you might have a really big image that you're wanting to add the watermark to. Sometimes you might have a really small image whereas the size of the watermark itself currently is always fixed. So, if you had a 500 pixel wide image and you wanted to add a 250 pixel wide watermark, well, it would obviously take up half of the image size whereas if you've got a really massive image then the watermark may well be too small. So, you may want to just set the size of this relative to the original image. So, I hope that makes sense in terms of what we're actually trying to do here. So, what I'm going to do is I'm actually just going to delete this step for now because there are now a few extra steps that we want to do. So, first of all, we want to actually get a width. We want to work out what the watermark width is going to be. So, the way that we can do that is we can actually get some information from the image itself and use that as the basis. So, what I'm going to do here is I'm going to look for a calculation, because we're going to calculate this based on the width of the image. And in here, from this instead of number, what I'm going to do is I'm going to actually select the variable of the image. Now, at the moment, we obviously can't work out anything of the image because the image is an image. It's nothing that we can actually calculate from. However, when you've added variables in like this, you can always just click on them and you can find properties related to that variable. So, in here, because I've clicked on the image, we can actually extract different information from there. So, we've got the name, the album that it's in, the width, the height, the date taken, all of these sorts of information, all of this metadata, the camera model. So, think about that. If you wanted to extract all of this sort of data, this is great for file renaming as well, where you can basically just extract all of this. I'll be looking at that in the video all about file management using shortcuts. But for now, what we want to do is we want to actually get the width out. So, there, I've clicked on the width. So, now, this calculation is working with the width of the original image. And let's say that we wanted this to be, say, 10% of that of the width. So, we want our watermark to be just 10% of the width of the image. So, I'm going to click on the multiply and I'm going to times by 0.1. So, that's now calculated 10% of the original image width. So, let's give that a variable name now. So, I'm going to set variable. And in here, what I'm going to do is I'm going to say, set variable name to watermark width. So, now, we know that the watermark width is 10% of the width of the original image. So, this is, just to be clear, this is calculating the width of the watermark based on original image. And, by the way, just for when you are using this, if you want to download this afterwards, once I've shared it, then you can see here this particular thing where we're choosing our file, you will have to choose. So, you would have to go in and actually edit this to basically choose your own file here, rather than this one, which is obviously the path to somewhere on my computer. And in this case as well, you could set that to be whatever size you wanted. Okay, so now we've got the size of our watermarked image. We can actually do that overlay procedure. So, let's come back to the overlay again. And I'm going to overlay image. And what are we going to overlay? Well, we're going to do exactly the same as we did before. We want to overlay, this is just slipping off the edge of the screen, off the bottom of the screen for you. So, let me do this again. We want to add the watermark to the image like that. Now, do you remember how that pop-up came up before where it was asking us to position it and size it and everything like that? Well, if we click on this Show More, you can actually remove that step. So, we don't want to show the user the image editor. We want to just define all of this ourselves within the shortcut. So, once you toggle that on off, then actually it brings up all of this information. So, we don't want to show the image editor. We want to just specify this. Now, we can choose the position of it. And then we can also choose the width of it. Now, we've got a variable now for our width. So, if I come in here and go Insert Variable and click on Watermark Width. So, that is now going to set the width of that little watermark image. And let's also set the opacity. Let's say we want that rather than 100%. Let's say we want that as 50%. Okay. So, now what we're going to do is we're going to set that as a variable as well. Because we're going to go on straight on with the saving process here as well. So, I'm going to come in here and set variable again. And this one, we are going to call this one the watermarked image. Watermarked image. So, now we've got an image with a watermark. It is the watermarked image. Okay. So, we've resized it. We've added in the watermark. We've resized that. And we've now given it a new name. So, now what we want to do is we want to actually save this out. And we're going to do that same step as we did before. So, where we get the name of the original image. So, I'll just actually pause this and I'll just join back in a moment when I've actually done that. Okay. So, this is basically just repeating what we did in the last example. So, I didn't want to just have you sit down as I sit through me as I did exactly the same as before and added in the comments. So, I'll just pick up where I was though. So, we had added the watermark to the overlaid image. So, this is now we have the overlaying the watermark on the image and specifying the size, location and opacity. So, then what I've done is because we want to rename this image with the extension watermark or whatever we want to add, I've done the same thing as before. So, I've got the name of the original image and given it the variable name image name. And then, I've set the name of the watermarked image to be image name underscore watermark. So, this was just as we did before when we did resize. I've just done exactly the same but now this says watermark. And then, I've given that a variable name just as I did before as well of renamed image. So, now we are renaming image and we've got image all ready to go, renamed, resized with the watermark, resized and positioned. So, now the last step is to basically save this. So, if I do save and then what I'm going to do is I'm going to save this at this time rather than the user choosing where to save it. What I'm going to do is I'm going to click on this show more and then I'm going to remove this option for ask where to save because we do just want to specify exactly where it is and you'll notice that when I toggle that one off then it's asking me save something to shortcuts. Well, it's not a file. It is actually specifically the renamed image. So, I want to save the renamed image to and then rather than the shortcuts if I click on replace it will allow me to choose the directory. So, I'm just going to use this one that we've been using for this demo. So, that is now going to save it to there. We've done quite a few things there and as I say it can look on the surface like it's complicated but it's really just a series of simple steps. Let's go and have a look at how this looks in practice. We'll come back and review this and then I'll show you how you can actually loop this if you want to apply it to multiple different files in one go. So, let's come over to the finder again and let's see how this actually works in practice. So, if I right click on here and then I click on the quick actions you can see that we've now got this one TOT watermark, that's what I called it. So, if I click on that then hopefully with a little bit of look Bingo, there we go we've got our new image and it's down here and it's actually got the, let me change to a view where you can see this a little bit easier. There you go, it's got the little watermark right down there in the bottom corner and it should be 10% of the width of that image. So, that is as simple as that. So, that is how easy it is to have that operate once you've set it up. So, as with all things there's a little bit of upfront work to set it up but then you can clearly see how it can really sort of speed up your workflow. But what if I want to just be able to actually click multiple images and have those all spit out the results as well rather than just one at a time. So, I'm going to delete this one and we're just going to try now to make a loop where basically it will do all of these in one go. Now, to do this what I'm actually going to do is I'm going to set up a second shortcut that basically uses the first one to run the loop. Now, this is a good little thing, good little example to understand you can actually build up these little small building blocks in different shortcuts and then actually sort of combine them all together much in the way you can in Keyboard Maestro as well you can trigger macros within macros and all that sort of thing. If you're interested in Keyboard Maestro I'll leave a link to my Keyboard Maestro series up above as well because if this sort of thing is up your street Keyboard Maestro might be as well. But I digress. So, let me just create another shortcut and I'm going to create another shortcut just as we did before so here we go. I've got a blank shortcut. But what I want to do now is I want to basically use what we've just created to sort of run continuously for however many images get sent to it if that makes sense. So, what we want to do here is receive once again doing exactly the same as we've done in the first two examples. I only want images. If there's no input yes we can ask for photos but in actual fact we want files although they're image files. And then what we want to do is we want to basically run a little loop with this. So, what we want to do is if I do a loop, repeat in fact is the word. So, repeat with each. And what we want to do is we want to repeat each shortcut but we want to just repeat with that little shortcut that we've just created in the middle. So, if I just search in here for shortcut then we can run shortcut and we want to pop that in the middle. So, basically now what we want to do is choose the shortcut that we've got which was called one second. We want to actually search for it. So, it was the TOT watermark. And what we're going to call this is we're going to call this bulk watermark so that we know what it is. So, basically yeah we're going to highlight some images we're going to trigger this action from the little menu in the same way that we have been doing. It's going to take the input and it's going to repeat for each of the images that it has it's going to run each of them through the watermark shortcut and then it's going to finish. Simple as that and if I click on show more you'll notice that the input rather than being just one image is basically like each of these images that's coming out. It's going to repeat it's own variable which is repeat item and that is as it goes through all of the different files that we're going to sort of feed into it. That is all there is to it actually and if I come over to the file manager again or the finder I should say and then right click on any of these and now you can see I've highlighted two of them and then if I come down to quick actions you can see I've missed one little step out there silly Alec, let me just come back to this if you remember we do actually also have to make this available in the finder so I just forgot that little step there so let me come back again and if I right click on that and now come into share into quick actions I should say now you should see that we do have that bulk watermark as an option there and now when I click that then with a bit of luck ah now because this is the first time we've run it you may remember before I'm asking for permission to run another shortcut so this is that privacy and permissions access that you will have to give it the first time it runs so basically it's asking are we sure that we want to let this shortcut trigger another shortcut and of course we do so let's click on allow and then if I come back to my original thing it has actually just spat those out let me just do that for you one more time just so you can see it actually doing it in front of your eyes so you know I'm not just tricking you right click quick actions bulk watermark and with a bit of luck it should just spit them both out and indeed there they are so obviously you can do this with as many files as you want and so that is using the loop command or rather the repeat command to basically loop through these actions pulling in that other shortcut that we have created this is a really good little tool to know where you can create these little sub-routines and things like that and have them feed into other shortcuts later now there's one last thing that I want to show you and that is basically how you can share these shortcuts and crucially how you can get these shortcuts that I've just created and download them and have a play with them yourself so what I'm going to do is just come back over to this view for a moment and if you are in your shortcuts any one of these so let's call this in fact let me take out TOT because it's just the watermarked image isn't it watermarked image so it will be more relevant to you then and then all you need to do is just click on this little share icon here and once you click on that you get this option down here you can obviously share it by email messages all that sort of stuff but a great way to share it is using this iCloud link so if you copy iCloud link and it says anyone with access to the shared link will be able to view the contents of this shortcut they can download it they can't change it on your computer so you're not granting access to anything on your computer you don't need to worry about that it has generated the link and it's now copied it to the clipboard if I just come over to a browser for a moment and I'll just paste that in here we go and it's just going to load this up so this is that link so if somebody else was now following that link let's say you pasted it into an email or into the description of a YouTube video for example which is well I'll leave it down in the description then all you need to do is follow the link and then click on this get shortcut and it will ask you do you want to allow shortcuts to download the shortcut and then you'll get this little pop up so just like if you were reviewing a shortcut that was in the gallery you'll get the same thing here so you will be able to click in here click on the three little dots just check that it is exactly the one that we've just covered you'll be able to see all of these steps make sure that there's nothing malicious in there and then you can just click on this add shortcut and it will just add it straight into your gallery or into your list of shortcuts I should say so I will leave a link to these down in the description and that is all for this video but don't go anywhere because in the next video what I'm going to be talking about is how you can use shortcuts with PDFs and all the sorts of things that you can do with those and there will be some other great tips in there as well so I'll see you there