Folder Actions for OS X explained - with real-world examples Le azioni cartella per OS X spiegato - con del mondo reale esempi

by Ross McKillop on January 30, 2007 McKillop di Ross a 30 gennaio 2007

Mac

What are Folder Actions? Quali sono le azioni cartella?

In a nutshell, Folder Actions are scripts that can be attached to folders. In poche parole, le azioni cartella sono script che possono essere associati ad cartelle. They enable events (actions) to take place when items are added or removed from that folder. Esse consentono di beneficiare di eventi (azioni) che avrà luogo in cui gli oggetti sono aggiunti o rimossi da quella cartella. Events can also occur when the folder is opened, closed or moved. Eventi può verificarsi anche quando la cartella viene aperta, chiusa o spostata.

Real-World Examples Del mondo reale esempi

  • When you put images in a certain folder, they’re automatically converted to JPG Quando si inserisce immagini in una certa cartella, sono automaticamente convertiti in JPG
  • When you put files in a certain folder, they’re automatically uploaded to a web server Quando si inserisce file in una certa cartella, sono automaticamente caricati su un server web
  • When you close a Finder window, all the sub-folder windows close as well Quando si chiude una finestra del Finder, tutte le sotto-cartella chiudere le finestre e
  • When new files are placed in a certain folder, you’re notified Quando i nuovi file vengono collocati in una certa cartella, si è notificato
  • When new files are placed in a certain folder (like your Desktop or download folder) they’re moved based on file type Quando i nuovi file vengono collocati in una certa cartella (come il tuo desktop o scaricare cartella) che sono mossi sulla base di tipo di file
  • See more in the Vedere più in Folder Action Resources Azione cartella Risorse section sezione
  • How to enable and use Folder Actions Come attivare e utilizzare Azioni Cartella

    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). Per questo esempio creeremo una cartella di azione che converte le immagini di formato JPG solo di cadere in una cartella (cartella questa particolare azione è incluso in OS X). Start by creating a new folder. Inizio con la creazione di una nuova cartella.
    2. Now right-click (ctrl-click) on that new folder and select Enable Folder Actions Ora clic con il pulsante destro (Ctrl + click) su quella nuova cartella e selezionare Attiva Azioni Cartella


    3. click to enlarge Clicca per ingrandire

    4. Again, right-click (ctrl-click) that same folder and this time select Attach a Folder Action… Ancora una volta, fai clic destro (Ctrl-click) che la stessa cartella e questa volta selezionare Allega una cartella di azione…


    5. click to enlarge Clicca per ingrandire

    6. You’ll probably be presented with a list of scripts. You'll probabilmente essere presentato con un elenco di script. If you’re not, you’ll need to navigate to the folder that contains all of the Folder Action scripts. Se non hai, devi passare alla cartella che contiene tutte le cartelle di azione script. They’re in Mac HD/Library/Scripts/Folder Action Scripts/. Sono in Mac HD / Libreria / Script / Script Azione Cartella /. Select Image - Duplicate as JPEG and then click Choose Selezionare Immagine - Duplica come JPEG e quindi fare clic su Scegli


    7. click to enlarge Clicca per ingrandire

    8. That’s it. Questo è tutto. Now drag a non-jpg picture into that folder (a PNG, GIF etc). Ora trascinare un non-JPG in tale cartella (un PNG, GIF, ecc.)
    9. Ta-da! The Folder Action will have duplicated your image, but this time as a JPG. La cartella di azione avrà la tua immagine duplicata, ma questa volta come un file JPG. It will also save the original image. E 'anche possibile salvare l'immagine originale.


    10. click to enlarge Clicca per ingrandire

    11. If you ever want to change or disable a Folder Action, right-click (ctrl-click) the folder and choose Configure Folder Actions… Se si desidera modificare o disattivare una cartella di azione, fai clic destro (Ctrl-click) la cartella e scegliere Configura Azioni Cartella…
    12. From here you’ll be able to manage all of your Folder Actions in one place. Da qui sarete in grado di gestire tutte le tue azioni cartella in un unico posto.

    Folder Action Resources Azione cartella Risorse

    Here are some sites that provide pretty cool Folder Action scripts etc - Ecco alcuni siti che forniscono pretty cool azione cartella script etc --

  • Auto-sort files dropped into the System Folder (like OS 9) Auto-ordinare i file lasciati nelle cartelle di sistema (come OS 9)
  • Automatically add/import files to iTunes when they’re placed in a folder Aggiungere automaticamente / importare file di iTunes quando sono immessi in una cartella
  • Upload files using Cyberduck when they’re placed in a folder Caricare file utilizzando Cyberduck quando sono immessi in una cartella (Upload Sample.scpt) - read the readme.txt for more info (Carica Sample.scpt) - leggere il readme.txt per maggiori informazioni
  • Use Folder Actions and Automator to keep your Desktop super-clean Utilizzare le azioni cartella e Automator per mantenere il tuo Desktop super-pulito
  • Automatically import (and tag) Photo Booth photos into iPhoto Importare automaticamente (e italiani) Photo Booth foto in iPhoto
  • Writing Folder Action scripts La scrittura di script azione cartella
  • [Digg] [del.icio.us] [Facebook] [Google]
    Related Posts: Posti connessi:
  • An introduction to Real Desktop - a Windows Desktop replacement Un'introduzione al Real Desktop - un desktop di Windows sostituzione
  • Review: Apogee Search Modifica: Apogee ricerca
  • Roundup: The Under-appreciated Posts Roundup: Il Sottosegretario apprezzato Posti
  • How to add commands to the OS X “right-click” menu Come aggiungere i comandi per OS X "clic con il pulsante destro" dal menu
  • Best of Blog Action Day Meglio della giornata di azione blog
  • { 6 trackbacks } (6) trackbacks

    Jay’s Headspace - » Eager Beaver for 01/31/2007 Jay's Headspace - »desiderosi di Beaver 01/31/2007
    02.04.07 at 9:22 pm 02.04.07 alle 9:22 pm
    Folder Action for automated upload of Aperture web galleries at The Joy of Scripting Cartella di azione per il caricamento automatico di apertura a gallerie web la gioia di Scripting
    11.30.07 at 11:59 pm 11.30.07 alle 11:59 pm
    Final Cut Producer | Mac Folder Actions Explained Final Cut produttore | Mac spiegato le azioni cartella
    03.04.08 at 6:19 am 03.04.08 alle 6:19 am
    Looky: An AppleScript Folder Action utilizing Quick Look at The Joy of Scripting Looky: un AppleScript azione cartella utilizzando rapido sguardo a la gioia di scripting
    03.28.08 at 12:59 am 03.28.08 alle 12:59 am
    AppleScript ::: Ignorantenprogramm released | macfidelity AppleScript::: Ignorantenprogramm rilasciato | macfidelity
    03.30.08 at 5:03 am 03.30.08 alle 5:03 am
    Folder Actions for OS X explained (with real-world examples) | The Pengas Blog Le azioni cartella per OS X spiegato (con il mondo reale esempi) | Il Blog di Pengas
    08.11.08 at 4:29 am 08.11.08 alle 4:29 am

    { 12 comments… read them below or (12 commenti… leggere qui sotto o add one aggiungere uno } )

    1 1 JP 01.31.07 at 3:52 pm JP 01.31.07 a 3:52 pm

    cool fresco

    2 2 Filip Lam Filip Lam 01.31.07 at 7:34 pm 01.31.07 alle 7:34 pm

    Wonderful tip! Punta meraviglioso! I’ve been wondering what folder actions was about but never really had the time to figure it out. Sono stato chiedo che cosa le azioni cartella è stata di circa ma mai veramente avuto il tempo di figura fuori. Thanks again! Grazie ancora!

    3 3 UT 01.31.07 at 11:29 pm UT 01.31.07 a 11:29 pm

    I wish all tutorials were this clear! Auguro a tutti questo tutorial sono stati chiari! Excellent tip!!! Ottimo suggerimento!

    4 4 Nick Nick 01.31.07 at 11:42 pm 01.31.07 alle 11:42 pm

    JP, Filip and UT - JP, Filip e UT --

    Glad to hear it helped!! Piacere sentire aiutato!

    5 5 Hani 02.16.07 at 7:35 am Hani 02.16.07 a 7:35 am

    Thanks for the great tip. Grazie per il grande punta. Is there a way for the music or movie folders to search the computer and add music/videos automatically? C'è un modo per la musica o film cartelle alla ricerca del computer e aggiungere musica / video automaticamente?

    6 6 Andy Andy 10.06.07 at 5:38 pm 10.06.07 alle 5:38 pm

    Great tutorial, this will help me out big time with workflow on my mac. Grande tutorial, ciò contribuirà a me out tempo con grande flusso di lavoro per il mio Mac.

    7 7 Murphy Murphy 11.13.07 at 9:24 pm 11.13.07 alle 9:24 pm

    Good info, thanks. Info bene, grazie.

    Here’s how to make a folder that mails files added to it to a preset address, useful for backing them up to Gmail. Ecco come fare una cartella di posta elettronica aggiunto al file a un indirizzo di preselezione, utile per il loro sostegno fino a Gmail.

    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 a 2:36 pm

    thank you very much. grazie mille. You gave an easy explanation. Avete dato una facile spiegazione.

    9 9 Muthu Muthu 06.18.08 at 6:05 am 06.18.08 a 6:05

    Awesome. Impressionante. Simple example which i was waiting to go though in years. Semplice esempio che i was in attesa di andare anche se in anni.

    10 10 Emilio Marte 06.25.08 at 12:37 pm Emilio Marte 06.25.08 a 12:37 pm

    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. Per favore me gustaría Alguien que me diga, cómo puedo hacer para que cuando Alguien coloque un archivio in un cartella cualquiera, che quest'estate mi notifique o che si attiva se il 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 a 12:40 pm

    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. Vi preghiamo di Auspico che qualcuno mi dica, come posso fare in modo che quando qualcuno mettere un file in una cartella nessuno, mi accorgo che questo o quello è attivata se è aperta.

    Thanks in advanc Grazie in advanc

    12 12 frank Frank 07.04.08 at 11:49 pm 07.04.08 alle 11:49 pm

    Ok i give you thumbs up! Ok Io ti thumbs up!

    Leave a Comment Lascia un commento

    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> È possibile utilizzare questi tag HTML e attributi: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>