Join Scott Simpson for an in-depth discussion in this video Interacting with the user via alerts, dialogs, and notifications, part of Up and Running with AppleScript.
…So far, the script has been operating on its own without any input from the user.…But since we're adding copyright or watermark information to the images, we…should probably ask the user what they want that information to be.…In this application, we'll use a dialog to get that information.…And, there's a couple of kinds of dialogs you can display.…The most basic is just an alert.…Since there's a number of options available, let's…take a look at the apple script language guide.…I'll open up commands reference over here, and then scroll down to display alert.…
Here, I can see that the command display…alert is required and it takes a text argument.…Let's take a look at that, right quick.…I'll switch back over to the editor, and I'll create a new script.…I'll write display alert, and then I'll type some text.…It's an alert.…A quick run and then it is.…I have this little window that pops up with bold text and an Okay button.…Looking back at the reference there's some other fields I can use.…I'll put these both up on the screen for a minute.…
- 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.