Hands-On Mac (Audio)

HOM 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

        Hands-On Mac (Audio)By TWiT

        • 4.2
        • 4.2
        • 4.2
        • 4.2
        • 4.2

        4.2

        17 ratings


        More shows like Hands-On Mac (Audio)

        View all
        This Week in Tech (Audio) by TWiT

        This Week in Tech (Audio)

        2,975 Listeners

        Mac Geek Gab — Your Questions Answered, Tips Shared, Troubleshooting Assistance by Dave Hamilton, Pilot Pete & Adam Christianson

        Mac Geek Gab — Your Questions Answered, Tips Shared, Troubleshooting Assistance

        823 Listeners

        Hands-On Tech (Audio) by TWiT

        Hands-On Tech (Audio)

        1,965 Listeners

        MacBreak Weekly (Audio) by TWiT

        MacBreak Weekly (Audio)

        8 Listeners

        Windows Weekly (Audio) by TWiT

        Windows Weekly (Audio)

        852 Listeners

        Intelligent Machines (Audio) by TWiT

        Intelligent Machines (Audio)

        687 Listeners

        Tech News Weekly (Audio) by TWiT

        Tech News Weekly (Audio)

        1,061 Listeners

        iOS Today (Audio) by TWiT

        iOS Today (Audio)

        544 Listeners

        Mac Power Users by Relay

        Mac Power Users

        1,273 Listeners

        MacBreak Weekly (Video) by TWiT

        MacBreak Weekly (Video)

        323 Listeners

        Macworld Podcast by Foundry

        Macworld Podcast

        304 Listeners

        9to5Mac Happy Hour by 9to5Mac

        9to5Mac Happy Hour

        696 Listeners

        AppleInsider Podcast by AppleInsider

        AppleInsider Podcast

        939 Listeners

        Rich On Tech by iHeartPodcasts

        Rich On Tech

        396 Listeners

        The MacRumors Show by The MacRumors Show

        The MacRumors Show

        223 Listeners