How to Make a Program in AppleScript

Locate the Script Editor., Learn to search for commands easily in its dictionary., Know what the icons in the header are for., Learn to save files in different formats., Learn simple commands, like the beep command, talk command, and the dialog...

11 Steps 2 min read Medium

Step-by-Step Guide

  1. Step 1: Locate the Script Editor.

    The Script Editor should be under AppleScript in the Applications folder.
  2. Step 2: Learn to search for commands easily in its dictionary.

    Go to File>Open Dictionary.

    Select AppleScript application.

    A window with AppleScript's dictionary will open up and you can search for all the commands you need. , Stop stops the recording.

    Run runs the script.

    Event Log History shows the history of usage of your script.

    Result History shows what happened during the time the script ran.

    Print prints out the script.

    Bundle Contents bundles the commands in the script. , To do this, go to File>Save As.

    Click on File Format and choose the type of format you need.

    This is needed for different purposes. , Beep command, type: beep Beep multiple times, type: beep 2 (any number can be used) Talk command, type: say "enter text" Dialog command, type: display dialog "enter text"

    It's very useful and handy when you're typing a long and complex program.

    To get the Script Assistant, go to Script Editor > Preferences.

    Click editing.

    Select Use Script Assistant.

    Quit and reopen Script Editor.

    Now when you type a command, an ellipsis appears next to it, completing the word.

    Press F5 to show all the terms possible.

    Press Enter on the term you need.This makes scripting much easier and faster. , There are many websites about AppleScript., There are many great books on scripting.
  3. Step 3: Know what the icons in the header are for.

  4. Step 4: Learn to save files in different formats.

  5. Step 5: Learn simple commands

  6. Step 6: like the beep command

  7. Step 7: talk command

  8. Step 8: and the dialog command.

  9. Step 9: Learn to use the Script Assistant.

  10. Step 10: Search the internet.

  11. Step 11: Read books!

Detailed Guide

The Script Editor should be under AppleScript in the Applications folder.

Go to File>Open Dictionary.

Select AppleScript application.

A window with AppleScript's dictionary will open up and you can search for all the commands you need. , Stop stops the recording.

Run runs the script.

Event Log History shows the history of usage of your script.

Result History shows what happened during the time the script ran.

Print prints out the script.

Bundle Contents bundles the commands in the script. , To do this, go to File>Save As.

Click on File Format and choose the type of format you need.

This is needed for different purposes. , Beep command, type: beep Beep multiple times, type: beep 2 (any number can be used) Talk command, type: say "enter text" Dialog command, type: display dialog "enter text"

It's very useful and handy when you're typing a long and complex program.

To get the Script Assistant, go to Script Editor > Preferences.

Click editing.

Select Use Script Assistant.

Quit and reopen Script Editor.

Now when you type a command, an ellipsis appears next to it, completing the word.

Press F5 to show all the terms possible.

Press Enter on the term you need.This makes scripting much easier and faster. , There are many websites about AppleScript., There are many great books on scripting.

About the Author

M

Matthew Young

A passionate writer with expertise in organization topics. Loves sharing practical knowledge.

43 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: