Join Scott Simpson for an in-depth discussion in this video Using comments, variables, text, and numbers, part of Up and Running with AppleScript.
…So let's start making an AppleScript application.…The first thing I'll do, which I like to do with…all my projects, is start out the document with a comment.…Which in AppleScript is two dashes at the beginning of a line.…I'll add a blank line here and then I'll add a multiline…comment, which is signified by an opening parenthesis and an asterisk or star.…A multiline comment ends with a star and the closing parenthesis.…A multiline comment can be as long as you like.…And since AppleScript won't read it as program instructions,…you can type pretty much whatever you like in there.…Now, I'll click Run and you can see absolutely nothing happens program-wise.…
The Editor styles and formats the text for me.…But it does that automatically every time I run a script anyway.…Comments can be used for notes about the program, reminders…to yourself about what needs to be done in a program.…But most importantly, you should add comments in your code to…remind your future self what you were doing when you wrote it.…One very common thing you'll see in programs are variables.…
- What is AppleScript?
- Using comments, variables, text, and numbers
- Working with files and folders
- Using conditionals and creating loops
- Building functions
- Controlling other programs with AppleScript
- Preventing and catching errors
- Distributing your AppleScript application
Skill Level Beginner
Up and Running with Bash Scriptingwith Scott Simpson1h 25m Beginner
1. Exploring AppleScript
2. Using AppleScript with Applications
3. Your App in the Real World
4. Further Exploration
Folder actions2m 52s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.