Join Scott Simpson for an in-depth discussion in this video Listing files in a folder, part of Learning AppleScript.
…So, the watermarking application will start out…working with files inside of a folder.…I have a folder of images here on my desktop, and I want to get…a list of them into an AppleScript…application so I can do something with them.…I'll open up a new script file and start building the skeleton of the app.…I'll set up a comment up here about what the app does.…In this case, this app adds watermark information to images.…And then, I'll write the beginning of the…code that we'll use for this program going forward.…That will specify the folder where images are that I want to work with.…So since I'm working with files and…folders, I'll be using the Finder application.…
So I'll say tell application Finder, and then…I'll remember to end the block with end tell.…And inside this block, I'll set theImagesFolder…to a path to the desktop folder…and Images cast as a string, cast as an alias.…It needs to be an alias to the folder, and you'll see why in just a moment.…Then I'll write another statement using that variable.…
- 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
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.