Join Scott Simpson for an in-depth discussion in this video Using lists and records, part of Up and Running with AppleScript.
- View Offline
- Exercise Files
…You might remember that I mentioned something…called a list in an earlier movie.…That's what we'll be working with here.…A list is a type of container that stores a number…of different things, like numbers or strings, in a particular order.…Before we start working with files, let's take a look at making a list explicitly.…I'll create a variable called myList,…and I'll add a couple elements to it.…A list starts with a curly brace and then items either…in quotes, like a text string, or a number just by itself.…And I'll click the Run button to get the contextual formatting.…So, there I've got a string, a number, and another…string that AppleScript put together for me with the ampersand character.…
Even though there were two parts to it, that value gets stored…as one element in the list, and at the end there's another number.…To get a particular value back out of the list, I can just ask for it.…I'll set myValue to item two of myList, and that'll give me back the number three.…This might be a little weird for you if you're…
- 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.