AppleScript Tutorial : Most recent modified file from a folder

  Рет қаралды 1,692

ClickingKeys

ClickingKeys

Күн бұрын

In this user requested video, we will use Script Editor to write an AppleScript handler to get a path to the most recently modified file of a given folder. We'll use a couple of different shell commands (ls, grep and head) available on macOS. You'll also see how to pipe output from one shell command to another to refine the results. I hope you find this tutorial educational.
For more AppleScript tutorial videos, check out this play list.
• Learn to AppleScript (...
If you're interested in watching full scripts being written, have a look at this play list.
• AppleScript Project Ex...

Пікірлер: 14
@boisypitre
@boisypitre 2 жыл бұрын
I enjoy the interactive element of the instruction in your videos. AppleScript is a fun and powerful language, and your teaching style is engaging. Nice work.
@ClickingKeys
@ClickingKeys 2 жыл бұрын
Wow, thank you for the really kind words Boisy. I really appreciate that.
@brianjmorrissey
@brianjmorrissey 2 жыл бұрын
This is great, thanks for making the video! I'm going to try to apply the info to a project I'm working on.
@ClickingKeys
@ClickingKeys 2 жыл бұрын
You’re very welcome, I hope it helps!
@Accla89
@Accla89 2 жыл бұрын
Very nice and video, it helps me a lot.
@Rocadamis
@Rocadamis Жыл бұрын
I want to write an AppleScript that announces the name of an email sender when the email arrives. Can you help with this?
@shawnhenry7017
@shawnhenry7017 2 жыл бұрын
Hey wondering if you can help me out. Is it possible to create a script that adds line breaks at the end of every line, in pages?
@ClickingKeys
@ClickingKeys 2 жыл бұрын
Hey Shawn, thanks for writing me. Yes, that should be possible. When you say “at the end of every line”, what are you defining as a “line”?
@shawnhenry7017
@shawnhenry7017 2 жыл бұрын
@@ClickingKeys I don't know how to define that. Let me see if I can explain. I am copying and pasting documents from pdf into pages for formatting and then copying and pasting from pages into an excel document. I would consider lines to be sentences, but it could also be 1 word and they don't always have punctuation at the end of them. hope this was helpful and not convoluted
@ClickingKeys
@ClickingKeys 2 жыл бұрын
Honestly, you might be able to skip Pages. Once the info is copied to your pasteboard your script would have access to it and you could possibly do everything you needed within the script, including putting it into Ecxel.
@shawnhenry7017
@shawnhenry7017 2 жыл бұрын
@@ClickingKeys the copying from pdf isn't always a straight forward thing for whatever reason, sometimes the words get jumbled I'm working on playwright scripts so characters name sometimes get separated from their dialogue. It's easier to fix the mess in pages then paste to numbers *meant numbers not excel mentioned in previous post *
@Rocadamis
@Rocadamis Жыл бұрын
I'm really disappointed. I thought this playlist was going to be a BEGINNERS playlist that was BUILDING on the previous videos in the list. Instead it just randomly jumps here to user requests and far more complicated scripts with names and properties not previously mentioned. Bummer. I was with you up to this point (Quit Handler), and every video after this is basically incomprehensible. Seems like you lost your initial focus for this playlist.
@ClickingKeys
@ClickingKeys Жыл бұрын
Thank you for your feedback @Rocadero. I felt I had given a pretty good overview of the basics of AppleScript and I wanted to give some real world examples of ways to use AppleScript to actually accomplish tasks. Adding the additional videos was meant to inspire and provoke thought.
@Rocadamis
@Rocadamis Жыл бұрын
@@ClickingKeys Another unexplained issue is using Shell Scripts, which seems like incorporating another language that I have no idea how to use or why I need to use them. I would hope you could go back and explain these for basics for beginners.
AppleScript Tutorial : Open and play movie in QuickTime Player
2:33
AppleScript Tutorial : Dynamically switch network location
9:09
ClickingKeys
Рет қаралды 1,7 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,5 МЛН
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 12 МЛН
AppleScript Tutorial : Data Types
11:34
ClickingKeys
Рет қаралды 4,3 М.
AppleScript Tutorial : Simple hot folder creation
8:23
ClickingKeys
Рет қаралды 2,3 М.
AppleScript Tutorial : Alias, HFS & POSIX - OH MY!
4:23
ClickingKeys
Рет қаралды 2 М.
Bolt.new Tutorial for Beginners (the Cursor AI and V0 Killer)
33:31
Greg Isenberg
Рет қаралды 97 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins (EzeeLinux)
Рет қаралды 2,3 МЛН
This key on your Mac unlocks so much power
12:28
A Better Computer
Рет қаралды 18 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 315 М.
AppleScript Tutorial : Error Handling
6:56
ClickingKeys
Рет қаралды 1,9 М.
AppleScript Tutorial : Handlers (aka Functions)
5:21
ClickingKeys
Рет қаралды 4 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 903 М.
Выдержит ли советский шлем? 🪖
0:51
The stories
Рет қаралды 11 МЛН
MINE UNO +100😱Subscribe to me❤️
0:34
ED
Рет қаралды 12 МЛН