Introduction: Simple Applescript Tutorial

 Hey everyone! Here is a simple Applescript tutorial for making popup dialogs.

***UPDATE***
The 4/13/10 update includes three new scripts, and how to save them. A special thanks to Marble of Doom for the first new one!

Step 1: You Will Need...

 1) A Mac (Sorry PC's... I'll have another tut for you guys later.)
 2) Applescript. It should come standard with all Mac's

Step 2: Open a New Script

 Fire up Applescript and type the following in:
-Display dialog (This tells the computer that it is going to make a popup dialog)
-"Text goes here" (Anything within the quotes is what will appear in the dialog)

Step 3: Adding More Lines

 Now do the same just start a new line every time.

 This is good for making fake viruses, but is pointless because Mac's don't get viruses!!!

Step 4: Now Test

 Just click run and it should start. 

Make sure it looks like the below:

Step 5: Applescript Number 2

 Here is another applescript brought to my attention by Marble of Doom (www.instructables.com/member/Marble+of+Doom/

It basically keeps putting more and more folders on the desktop, until you force quit it. And sorry, I will not demonstrate it. 

***DISCLAIMER*** If you really mess up your computer, it is not mine, nor Marble of Doom's fault, it is yours

Step 6: The Repeat

 The Repeat command tells Script Editor to keep doing whatever you tell it to, in this case, making folders

Step 7: The Beep

 To be honest, I have NO idea what this does, but after some googleing, I found the beep command just makes the Mac's default error beep (You may not of heard this beep, because you probably haven't had an error)

Step 8: The Command

 Here is when the computer starts making folders. Here is what each of the commands will do.
  1. tell application "Finder"
    This simply tells Finder to pay attention  
  2. make new folder at desktop
    This tells Finder to start making folders
  3. end tell
    This tells Finder that it isn't going to get any more commands, but to keep making folders


Step 9: Finishing Off

 Just hit the "Compile" button, and save it, if you dare. THE ONLY WAY TO STOP THIS IS TO FORCE QUIT IT

Step 10: Simplest of Them All Is...

 The Shutdown script!!! This is really simple.

Step 11: Here Is How to Do It

 Simple. Just type in 

tell application "Finder" to shut down

This simply shuts down the computer.

Step 12: Lastly, Opening Pages in Safari

 Lastly, here is how to open a webpage in 
Safari.

Type in: tell application "Safari" to open
                 open location "https://www.instructables.com/"

You can type in as many websites as you want, which can get really annoying

Step 13: Saving

 So you have read through all of these scripts, but how do you save them?

Well, you can save it as a script, that opens in Script Editor, an Application, or a text file

To save, you go to File> Save or File> Save As... and select what you want to name it and save it as.