So, I mean, time’s a-wasting), and without attaching notes to these things, it becomes really easy to forget why you bothered to write this particular script in the first place. You’re going to start writing a lot of scripts (No, really, I’ve paid a large man $30 to come over to your house and beat the snot out of you if you don’t. It’s a good idea to describe your script and what it does. It can display three different things, depending on which of those three tabs underneath it has been clicked: Underneath the code section of the window exists a little pane of information. If everything’s flawless, it reformats the script with fancy nested indents and type styles to make it more readable. If something you’ve typed doesn’t make sense as AppleScript, it flags it for you and does its best to explain what the problem is. Essentially, it double-checks your spelling and grammar. Clicking that sucker terminates the script in mid-run-a very useful feature when the script that you thought you told to automatically assemble a report on the status of the network actually winds up taking a folder full of boudoir photos that you posed for at the mall and e-mails them to everyone in your 1,100-person Address Book.Īs you start to work with longer and more complicated scripts, you’ll probably start making regular use of the Compile button. If you were watching the window carefully when you clicked Run, you noticed that the Stop button enabled itself while your script was running. I bet your skin’s half a shade paler already. Type the following code into the editing window:.Create a new script by pressing Command-N. You can work around that limitation sometimes in the preceding example, I could just tell Automator to go visit the Web site and build that list all over again. There are plenty of workflows in which it’d be helpful to say “OK: you remember 20 steps ago, way back in Step Three, when I told you to get a list of all of the pictures on theĪstronomy Picture of the Day Web site? Here’s something else I want you to do with that same list:” But that’s way beyond Automator’s puny intellect. Imagine that I’ve got an Automator workflow that’s 20 or 30 steps long. Anyone who’s taken an introductory programming course knows what a variable is. You also can’t do anything that requires the use of variables. “If the file is smaller than 500K, I want you to e-mail it to my editor if it’s larger, then upload it to my personal FTP server and send him an e-mail with instructions on how to download it.” You just can’t do that with Automator. The point where Automator falls down is when you throw it a problem that requires it to do some actual thinking. It’s marvelously well-suited for automating processes that are linear… ones that can be easily broken down into a list of predictable steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |