Join Scott Simpson for an in-depth discussion in this video Folder actions, part of Up and Running with AppleScript.
…One of the handy things Mac OS X allows is what are called folder actions.…These are a way to associate AppleScripts…with certain events happening within a designated folder.…You can hook scripts onto these actions: adding things to a folder,…closing a folder window, opening a folder, and removing items from a folder.…Moving a finder window is listed in…the documentation, but it isn't currently available.…The language reference goes into a lot more detail about these,…but right now I want to show you a basic example.…A folder action sends an event to whatever script is associated with it.…
So, in order to respond to that event, you have to write a handler.…I'll write, on adding folder items to.…And, that's going to be the name of my handler.…So, I'll have to write, end adding folder items to.…And then, I have to tell it what to do.…So, we're talking about thisFolder, it's going to be a variable that…holds the name of the folders that I associate with the script.…And then, I'll write, after receiving someItems.…
- 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.