How to Make a Program in AppleScript
How to Make a Program in AppleScript
AppleScript is a powerful English-like scripting program that allows the user to make applications, from helpful math solvers to games. This how-to will show you the basics of AppleScript and how simple it is compared to, say, batch.
Steps

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

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.

Know what the icons in the header are for. 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.

Learn to save files in different formats. 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.

Learn simple commands, like the beep command, talk command, and the dialog command. Beep command, type: beepMake a Program in AppleScript Step 5Bullet1.jpg Beep multiple times, type: beep 2 (any number can be used)Make a Program in AppleScript Step 5Bullet2.jpg Talk command, type: say "enter text"Make a Program in AppleScript Step 5Bullet3.jpg Dialog command, type: display dialog "enter text"Make a Program in AppleScript Step 5Bullet4.jpg

Learn to use the Script Assistant. 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.

Search the internet. There are many websites about AppleScript.

Read books! There are many great books on scripting.

What's your reaction?

Comments

https://terka.info/assets/images/user-avatar-s.jpg

0 comment

Write the first comment for this!