Folder Actions for OS X explained - with real-world examples Ordner Aktionen für OS X erklärt - mit real-world examples

by Ross McKillop on January 30, 2007 McKillop von Ross am 30. Januar 2007

Mac

What are Folder Actions? Was sind Ordner Aktionen?

In a nutshell, Folder Actions are scripts that can be attached to folders. In a nutshell, Ordner Aktionen sind Skripte, kann an Ordnern. They enable events (actions) to take place when items are added or removed from that folder. Sie ermöglichen Veranstaltungen (Aktionen) stattfinden soll, wenn Elemente hinzugefügt oder aus diesem Ordner. Events can also occur when the folder is opened, closed or moved. Veranstaltungen können auch auftreten, wenn der Ordner geöffnet, geschlossen oder verschoben werden.

Real-World Examples Real-World Beispiele

  • When you put images in a certain folder, they’re automatically converted to JPG Wenn Sie die Bilder in einem bestimmten Ordner, sind sie automatisch in JPG
  • When you put files in a certain folder, they’re automatically uploaded to a web server Wenn Sie Dateien in einem bestimmten Ordner, sind sie automatisch zu einem Web-Server
  • When you close a Finder window, all the sub-folder windows close as well Wenn Sie ein Finder-Fenster, das alle Sub-Ordner Windows nah wie gut
  • When new files are placed in a certain folder, you’re notified Wenn neue Dateien werden in einen bestimmten Ordner, die Sie benannten
  • When new files are placed in a certain folder (like your Desktop or download folder) they’re moved based on file type Wenn neue Dateien werden in einen bestimmten Ordner (zB Ihren Desktop oder Download-Ordner) zog sie nach Dateityp
  • See more in the Lest mehr dazu in der Folder Action Resources Folder Action Resources section Abschnitt
  • How to enable and use Folder Actions So aktivieren und verwenden Sie Ordneraktionen

    1. For this example we’ll create a Folder Action that converts images to JPG format just by dropping them into a folder (this particular Folder Action is included with OS X). In diesem Beispiel erstellen wir einen Ordner Aktion, das Bilder zum JPG-Format nur durch Drop in einen Ordner (diese Aktion bestimmten Ordner ist mit OS X). Start by creating a new folder. Starten Sie, indem Sie einen neuen Ordner.
    2. Now right-click (ctrl-click) on that new folder and select Enable Folder Actions Jetzt rechten Maustaste (Strg-Klick) auf diesem neuen Ordner und wählen Sie Aktivieren Ordner Aktionen


    3. click to enlarge Zum Vergrößern anklicken

    4. Again, right-click (ctrl-click) that same folder and this time select Attach a Folder Action… Auch mit der rechten Maustaste (Strg-Klick) im selben Ordner und dieses Mal wählen Sie anhängen Ordnern Aktion…


    5. click to enlarge Zum Vergrößern anklicken

    6. You’ll probably be presented with a list of scripts. Du wirst wahrscheinlich mit einer Liste von Skripten. If you’re not, you’ll need to navigate to the folder that contains all of the Folder Action scripts. Wenn Sie sich nicht, müssen Sie navigieren Sie zu dem Ordner, enthält alle von der Ordner-Action-Skripts. They’re in Mac HD/Library/Scripts/Folder Action Scripts/. Sie sind in der Mac HD / Library / Scripts / Folder Action Scripts /. Select Image - Duplicate as JPEG and then click Choose Wählen Sie Bilder - Doppelte als JPEG und klicken Sie dann auf Wählen Sie


    7. click to enlarge Zum Vergrößern anklicken

    8. That’s it. Das war's schon. Now drag a non-jpg picture into that folder (a PNG, GIF etc). Nun ziehen Sie ein nicht-JPG Bild in diesem Ordner (ein PNG, GIF usw.).
    9. Ta-da! The Folder Action will have duplicated your image, but this time as a JPG. Die Ordner-Aktion dupliziert wird dein Bild, aber dieses Mal als JPG. It will also save the original image. Es wird auch speichern Sie das Originalbild.


    10. click to enlarge Zum Vergrößern anklicken

    11. If you ever want to change or disable a Folder Action, right-click (ctrl-click) the folder and choose Configure Folder Actions… Wenn Sie sich jemals ändern möchten oder deaktivieren Sie einen Ordner Aktion mit der rechten Maustaste (Strg-Klick) den Ordner und wählen Sie Konfigurieren Ordner Aktionen…
    12. From here you’ll be able to manage all of your Folder Actions in one place. Von hier aus können Sie verwalten alle Ihre Ordner Aktionen an einem Ort.

    Folder Action Resources Folder Action Resources

    Here are some sites that provide pretty cool Folder Action scripts etc - Hier sind einige Websites, die ziemlich cool Folder Action Scripts usw. --

  • Auto-sort files dropped into the System Folder (like OS 9) Auto-Art-Dateien sank in den Systemordner (zB OS 9)
  • Automatically add/import files to iTunes when they’re placed in a folder Automatisch hinzufügen / Import-Dateien in iTunes, wenn sie in einem Ordner
  • Upload files using Cyberduck when they’re placed in a folder Hochladen von Dateien mit Cyberduck, wenn sie in einem Ordner (Upload Sample.scpt) - read the readme.txt for more info (Hochladen Sample.scpt) - Lesen Sie die readme.txt für mehr Infos
  • Use Folder Actions and Automator to keep your Desktop super-clean Verwenden Sie Ordner Aktionen und Automator, um deinen Desktop Super-Clean
  • Automatically import (and tag) Photo Booth photos into iPhoto Automatisch importieren (und Tag) Photo Booth Fotos in iPhoto
  • Writing Folder Action scripts Writing Ordner Action Scripts
  • [Digg] [del.icio.us] [Facebook] [Google]
    Related Posts: Verwandte Beiträge:
  • An introduction to Real Desktop - a Windows Desktop replacement Eine Einführung in Real Desktop - eine Windows-Desktop-Ersatz
  • Review: Apogee Search Review: Apogee-Suche
  • Roundup: The Under-appreciated Posts Roundup: Die Unter-Beiträge geschätzt
  • How to add commands to the OS X “right-click” menu Wie fügt man Befehle an den OS X "der rechten Maustaste auf"-Menü
  • Best of Blog Action Day Best of Blog Aktionstag
  • { 6 trackbacks } Trackbacks (6)

    Jay’s Headspace - » Eager Beaver for 01/31/2007 Jay's Headspace - »Neugierde Beaver für 01/31/2007
    02.04.07 at 9:22 pm 02.04.07 auf 9:22 Uhr
    Folder Action for automated upload of Aperture web galleries at The Joy of Scripting Ordner-Aktion für den automatisierten Upload von Aperture Web-Galerien zu The Joy of Scripting
    11.30.07 at 11:59 pm 11.30.07 auf 11:59 Uhr
    Final Cut Producer | Mac Folder Actions Explained Final Cut Hersteller | Mac-Ordner Aktionen erklärt
    03.04.08 at 6:19 am 03.04.08 auf 6:19 Uhr
    Looky: An AppleScript Folder Action utilizing Quick Look at The Joy of Scripting Looky: ein AppleScript Ordner Aktion unter Verwendung kurzer Blick auf die Freude an der Scripting
    03.28.08 at 12:59 am 03.28.08 auf 12:59 Uhr
    AppleScript ::: Ignorantenprogramm released | macfidelity AppleScript::: Ignorantenprogramm freigegeben | macfidelity
    03.30.08 at 5:03 am 03.30.08 auf 5:03 Uhr
    Folder Actions for OS X explained (with real-world examples) | The Pengas Blog Ordner Aktionen für OS X erklärt werden (mit der realen Welt Beispiele) | Die Pengas Blog
    08.11.08 at 4:29 am 08.11.08 auf 4:29 Uhr

    { 12 comments… read them below or (12 Kommentare… lesen sie unten oder add one fügen Sie ein } )

    1 1 JP 01.31.07 at 3:52 pm JP 01.31.07 in 3:52 Uhr

    cool kühl

    2 2 Filip Lam Filip Lam 01.31.07 at 7:34 pm 01.31.07 auf 7:34 Uhr

    Wonderful tip! Wonderful-Tipp! I’ve been wondering what folder actions was about but never really had the time to figure it out. Ich habe gefragt, in welchem Ordner Aktionen wurde aber nie über hatte wirklich an der Zeit, einen Reim darauf machen. Thanks again! Thanks again!

    3 3 UT 01.31.07 at 11:29 pm UT 01.31.07 in 11:29 Uhr

    I wish all tutorials were this clear! Ich wünsche allen Tutorials wurden diese klare! Excellent tip!!! Excellent Tipp!

    4 4 Nick Nick 01.31.07 at 11:42 pm 01.31.07 auf 11:42 Uhr

    JP, Filip and UT - JP, Filip und UT --

    Glad to hear it helped!! Froh zu hören, es half!

    5 5 Hani 02.16.07 at 7:35 am Hani 02.16.07 in 7:35 Uhr

    Thanks for the great tip. Vielen Dank für das große Spitze. Is there a way for the music or movie folders to search the computer and add music/videos automatically? Gibt es einen Weg für die Musik-oder Film-Ordner zu suchen Sie den Computer und fügen Sie Musik / Videos automatisch?

    6 6 Andy Andy 10.06.07 at 5:38 pm 10.06.07 auf 5:38 Uhr

    Great tutorial, this will help me out big time with workflow on my mac. Great Tutorial, das wird mir helfen, die große Zeit mit Workflow auf meinem Mac.

    7 7 Murphy Murphy 11.13.07 at 9:24 pm 11.13.07 auf 9:24 Uhr

    Good info, thanks. Gute Infos, danke.

    Here’s how to make a folder that mails files added to it to a preset address, useful for backing them up to Gmail. Hier ist, wie man einen Ordner, Dateien, E-Mails hinzugefügt, um sie zu einer voreingestellten Adresse, nützlich für die Sicherung auf Google Mail.

    http://murphymac.com/files-mailed-magically-when-dropped-in-a-finder-folder/

    8 8 damn.hustle 12.10.07 at 2:36 pm damn.hustle 12.10.07 in 2:36 Uhr

    thank you very much. Vielen Dank. You gave an easy explanation. Sie haben eine einfache Erklärung.

    9 9 Muthu Muthu 06.18.08 at 6:05 am 06.18.08 auf 6:05 Uhr

    Awesome. Ehrfürchtig. Simple example which i was waiting to go though in years. Einfaches Beispiel die ich wartete zu gehen obwohl in Jahren.

    10 10 Emilio Marte 06.25.08 at 12:37 pm Emilio Marte 06.25.08 in 12:37 Uhr

    Saludos:

    Por favor me gustaría que alguien me diga, cómo puedo hacer para que cuando alguien coloque un archivo en un folder cualquiera, que este me notifique o que se active si el mismo está abierto. Por favor que me gustaría alguien mich Diga, cómo puedo hacer para que cuando alguien coloque un archivo de un Ordner cualquiera, que este mich notifique o que se aktive si el mismo está abierto.

    Gracias de antemano Gracias de antemano

    11 11 Emilio Marte 06.25.08 at 12:40 pm Emilio Marte 06.25.08 in 12:40 Uhr

    Please I would like to see someone tell me, how can I do so that when someone put a file in a folder anyone, I notice that this or that is activated if it is open. Bitte ich möchte sehen, jemand sagt mir, wie kann ich tun, damit, wenn jemand eine Datei in einem Ordner jemand, ich stelle fest, dass dieser oder jener wird aktiviert, wenn es geöffnet ist.

    Thanks in advanc Vielen Dank im advanc

    12 12 frank Frank 07.04.08 at 11:49 pm 07.04.08 auf 11:49 Uhr

    Ok i give you thumbs up! Ok, ich bitte Sie thumbs up!

    Leave a Comment Schreibe einen Kommentar

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Sie können diese HTML-Tags und Attribute: <a href= title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>