Using+Script+Editor

Step 2: Using Script Editor
Now that you have your Script Editor window open, it's time to learn the language. Type "beep" (without quotations) into the box, like this:



Now, turn up the computer volume and press Run, the button with the Play icon. Your computer should beep! Now, we're going to check out the "say" command. Delete the word "beep" and type "say" (without quotations). Now, what do you want your computer to say? How about "Hello world!"? Ok. So enter "Hello, world!" (//with// quotation marks) after say. It should look like this: code format="applescript" say "Hello, world!" code or this:



Now, turn up the volume and click Run. Wow. Nice English, mister. We are going to learn one more basic command. Dialog boxes. Ever had those boxes with text flash up on your computer to alert you, and at the bottom two buttons that say "Ok" and "cancel"? Just like that. We are going to display 'Hello, world!" again. This is the code: code format="applescript" display dialog "Hello, world!" code or, like this:



Click Run and you get this:



=So...you've learned some simple AppleScript commands. Click here to learn more advanced ones.=