Join Scott Simpson for an in-depth discussion in this video Solution: Set some file metadata, part of Up and Running with AppleScript.
…Welcome back.…Lets take a look at my solution.…Of course, your solution might be a little bit different and that's okay.…One of things that I asked you to do, was to find a property that you set on files.…I search over to the finder dictionary here and select the item class.…I had mentioned that there is more than property that might be appealing.…As a container for some kind of string value.…The two that I had in mind were description and comment.…However, description is read only, and that's a…description of the item that's set by the system.…
I can't do anything about that value.…But I can set a comment.…So back here in my script, the first thing that…I do is ask for text to add to the images.…It would display dialog and then, what text would you like to add?…And then I specify the default answer copyright 2014 me.…If you're wondering, this copyright character is option g on the Mac keyboard.…Then I set up a global variable called mytext.…Then I set that variable to text returned to result.…So, the variable myText contains whatever text, either copyright…
- 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.