Total Leo (Video)

Hands-On Mac 24: Writing Your Own Folder Actions with Automator


Listen Later

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!

Host: Leo Laporte

Download or subscribe to this show at https://twit.tv/shows/hands-on-mac

Discuss episodes in the TWiT Community.

Sponsor:

  • LastPass.com/twit
  • ...more
    View all episodesView all episodes
    Download on the App Store

    Total Leo (Video)By TWiT

    • 3.6
    • 3.6
    • 3.6
    • 3.6
    • 3.6

    3.6

    16 ratings


    More shows like Total Leo (Video)

    View all
    This Week in Tech (Video) by TWiT

    This Week in Tech (Video)

    273 Listeners

    MacBreak Weekly (Video) by TWiT

    MacBreak Weekly (Video)

    363 Listeners

    iOS Today (Video) by TWiT

    iOS Today (Video)

    244 Listeners

    Tech News Weekly (Video) by TWiT

    Tech News Weekly (Video)

    112 Listeners

    Security Now (Video) by TWiT

    Security Now (Video)

    148 Listeners

    Hands-On Tech (Video) by TWiT

    Hands-On Tech (Video)

    103 Listeners

    All TWiT.tv Shows (Video) by TWiT

    All TWiT.tv Shows (Video)

    87 Listeners

    Windows Weekly (Video) by TWiT

    Windows Weekly (Video)

    79 Listeners

    This Week in Google (Video) by TWiT

    This Week in Google (Video)

    72 Listeners

    Home Theater Geeks (Video) by TWiT

    Home Theater Geeks (Video)

    17 Listeners

    TWiT News (Video) by TWiT

    TWiT News (Video)

    20 Listeners

    Hands-On Tech (Video) by TWiT

    Hands-On Tech (Video)

    33 Listeners

    TWiT Throwback (Video) by TWiT

    TWiT Throwback (Video)

    6 Listeners

    TWiT Events (Video) by TWiT

    TWiT Events (Video)

    12 Listeners

    Total Mikah (Video) by TWiT

    Total Mikah (Video)

    9 Listeners

    Hands-On Apple (Video) by TWiT

    Hands-On Apple (Video)

    50 Listeners

    Hands-On Windows (Video) by TWiT

    Hands-On Windows (Video)

    7 Listeners

    This Week in Space (Video) by TWiT

    This Week in Space (Video)

    22 Listeners

    Untitled Linux Show (Video) by TWiT

    Untitled Linux Show (Video)

    2 Listeners