Writing Your Own Folder Actions with Automator - An Easier Way to Create a Script
Now it's time to really make folder actions sing with your own custom code. You can do this in Automator or Applescript (easier), or using a scripting language like shell, python, or Perl (advanced).
Follow these steps in order:
Create a script with Script Editor or another script application.
1. In that script, write a handler that conforms to the syntax documented here for the `[adding folder items to] ' folder action. Your handler can use the aliases that are passed to it to access the image files dropped on the folder.
2. Save the script as a compiled script or script bundle.
3. Put a copy of the script in `/Library/Scripts/Folder Action Scripts` or `~/Library/Scripts/Folder Action Scripts`.
4. Use the Folder Actions Setup application, located in `/Applications/AppleScript`, to:
a. Enable folder actions for your image folder.
b. Add a script to that folder, choosing the script you created
Leo Laporte gives you helpful tips to get the most from your Mac every week on Hands-On Mac!
Видео Writing Your Own Folder Actions with Automator - An Easier Way to Create a Script канала Hands-On Mac
Follow these steps in order:
Create a script with Script Editor or another script application.
1. In that script, write a handler that conforms to the syntax documented here for the `[adding folder items to] ' folder action. Your handler can use the aliases that are passed to it to access the image files dropped on the folder.
2. Save the script as a compiled script or script bundle.
3. Put a copy of the script in `/Library/Scripts/Folder Action Scripts` or `~/Library/Scripts/Folder Action Scripts`.
4. Use the Folder Actions Setup application, located in `/Applications/AppleScript`, to:
a. Enable folder actions for your image folder.
b. Add a script to that folder, choosing the script you created
Leo Laporte gives you helpful tips to get the most from your Mac every week on Hands-On Mac!
Видео Writing Your Own Folder Actions with Automator - An Easier Way to Create a Script канала Hands-On Mac
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![An Introduction To Using Mac Automator](https://i.ytimg.com/vi/BTmZOh1GI3U/default.jpg)
![Using Hazel with Folder Actions - An easy way to automate your Mac](https://i.ytimg.com/vi/ySr5JSWNnsk/default.jpg)
![Creating An Information Notification With Shell Scripts And Automator](https://i.ytimg.com/vi/WcdUBfQVH5M/default.jpg)
![Automatically Organize Files With an Automator Folder Action Shell Script](https://i.ytimg.com/vi/2LaitUcUEqg/default.jpg)
![Automator - автоматизируем процессы на Mac (МакЛикбез)](https://i.ytimg.com/vi/ZRPJfpEz_64/default.jpg)
![Automator Folder Actions (MacMost Now 488)](https://i.ytimg.com/vi/uP08R5c5b3o/default.jpg)
![ULTIMATE MacBook Battery Guide! (Should You Keep It Plugged In?)](https://i.ytimg.com/vi/d34p7ULZbzU/default.jpg)
![Make the Mac Dock More Powerful By Adding Special Folders](https://i.ytimg.com/vi/oG1J3MN6UDI/default.jpg)
![Automatically Backup Files to External Hard Drive on a Mac Using Automator](https://i.ytimg.com/vi/n17XsI80ndE/default.jpg)
![Securing macOS Big Sur](https://i.ytimg.com/vi/7KdhJimuhNw/default.jpg)
![Automatically Organize Files On Your Mac Computer Using Automator](https://i.ytimg.com/vi/aAEBO_jmBio/default.jpg)
![How I Automate my Mac with Alfred | Best Workflows for Productivity](https://i.ytimg.com/vi/x75ISa9KIdg/default.jpg)
![Don't give Apple your MONEY - Mac Pro Upgrade Adventure](https://i.ytimg.com/vi/zcLbSCinX3U/default.jpg)
![Organizing Windows (Magnet Tiles & Workspaces)](https://i.ytimg.com/vi/mJn_5U6qOwQ/default.jpg)
![Add Dates To File Or Photo Names With an Automator Script](https://i.ytimg.com/vi/mpElZXDqlME/default.jpg)
![On the Road to Big Sur 4 - Inventory](https://i.ytimg.com/vi/JR3NCh1i4nc/default.jpg)
![How to Turn Photos into Cartoon Effect - Photoshop Tutorial](https://i.ytimg.com/vi/e_654r3-RDw/default.jpg)
![Secret Mac Boot Commands - Mac Boot Key Combinations](https://i.ytimg.com/vi/VwNYWAxHCgM/default.jpg)
![How I automate my job.* Well, some of it anyway, using AppleScript.](https://i.ytimg.com/vi/WqPFr9SdOPg/default.jpg)
![Removing Malware and Adware from your Mac!!!](https://i.ytimg.com/vi/QSqIWAKPBAk/default.jpg)