![]() ![]() So I Cmd + C to copy, Cmd + V to paste, and then I rename so it says -working, and then, over here, in my Exercise Files, you'll notice that there it is, it says hello-working, I'll open that up a little bit so we can see the whole thing, I can double-click on that and it actually opens it up in the editor. ![]() I want to make a working copy, so I'm going to come out here to my Finder, and I'm going to open my desktop, and Exercise Files, and come into Chapter One, and I'm going to make a working copy of this Hello Version. And now, we can actually just close this pane, because we don't need it anymore, and we're going to open a script over here, but I don't want to open this one. And that's okay, that's what we want, is the Run there. You'll have a longer list over here, probably, and Run will be somewhere in the middle of that. Click the Add button, it won't work if we don't do that, and select OK, and we now have, you notice, over here, it says Run. Then I'm going to come over here to the Key Binding tab, and under New Key Sequence, I'm going to put in Shift, Command, and R, and it'll say Meta + Shift + R, because the Command key comes up as Meta here, and that's all right. Some of our examples won't work if we don't do that. First, down here in Start in, I need to put a % and a capital D, for Directory, so it'll start in the same directory, or the same folder, as the script itself, and that's actually important. But those are double-quote marks, you know, regular quotes, with %F inside of them, and then up here in the title, I'm just going to say Run and a dash and a capital R, and that reminds me that this is going to be bound to the Shift + Cmd + R key, and we'll get to that in a moment. So, those are double-quote marks, and I know they're really small on your screen there. Now, this is a Mac, so Perl is already installed and it's already in the path, so all I have to put here for the command is Perl and the name of the file that we're going to run, which is a meta name, because it's just going to run whatever script is open in the editor, so I put in "%F". Now, on the right-side pane over here, I'm going to Ctrl + click on an empty space here, and I'm going to select Add and New Command, and this is going to create the command for running Perl. This is the way we can put our Exercise Files in here, so I'm going to go to my Desktop, and Exercise Files, and I just leave that selected, so that Exercise Files there is highlighted, and I select Open, and this will open up the Exercise Files here in my Directory Pane, and that is the way that I want that, and then I can open these up, and I see the files for my various chapters in my Exercise Files. And then, you'll click on the gear here and say Open Directory. You want to select the Directory button to display the directories. There's the Open Files button and the Directory button. And, over here, on the Directory side, you notice there's two buttons. ![]() You probably don't have that Archive folder. I had installed this before, and moved some of the stuff to the Archive folder. You probably have a bunch more things here than I have. We'll close the right one a little bit later. There's the right pane, the bottom pane, and we're just going to open all these up for now. Now, for our purposes, because this screen is so small, you may not need to do this, you've probably got a larger screen than I do, but this is small for recording purposes, I'm going to Opt + click the green button there to maximize, and up here at the top, you'll see these pane buttons. And now I can run Komodo Edit from my dock. For convenience, I'm going to open up Applications here, and I'm going to find the Komodo editor, there it is, and I'm going to drop that on my dock, and eject this, pressing Control and the mouse button. I've already downloaded the installer to my desktop, so I'll just double-click here on the DMG file for Komodo Edit, and drag the app into my Applications folder. On the other hand, for our purposes, we're going to use the free version, which is called Edit, and you can download it with this download button. There's a nice little comparison down here that you can look at, and, you know, if you're going to use a lot of these features, then it's probably worth it to spend $100 for personal use. Now, Komodo IDE is the pay-for-it version of the Komodo editor, costs $100 for personal use. One of them says Try Komodo IDE and one is says Download Edit. So, here at /komodoedit, we find the Download page, and you'll notice that there's two download buttons. This editor is designed for use with Perl, and it's provided by one of the leading providers of Perl for desktop systems. For this course, I'm using the free version of the Komodo editor from ActiveState. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |