What are Folder Actions? Aké sú zložky akcie?
In a nutshell, Folder Actions are scripts that can be attached to folders. V skratke, zložky Akcie sú skripty, ktoré môžu byť pripojené do zložiek. They enable events (actions) to take place when items are added or removed from that folder. Umožňujú akcie (akcie) sa uskutoční pri pridanie alebo odstránenie položky z tejto zložky. Events can also occur when the folder is opened, closed or moved. Udalosti môže dôjsť aj pri otvorení priečinka, ktorá bola uzavretá alebo presunutá.

Real-World Examples Real-World Príklady
How to enable and use Folder Actions Ako povoliť a používať zložky Akcie
- 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). Pre tento príklad budeme vytvárať priečinky akciu, ktorá prenáša obrázky do formátu JPG len tým, že upustia je do priečinka (tento konkrétny zložky Akcia je súčasťou OS X). Start by creating a new folder. Začnite tým, že vytvorí novú zložku.
- Now right-click (ctrl-click) on that new folder and select Enable Folder Actions Teraz-pravým tlačidlom myši (ctrl-click) na tejto novej zložky a vyberte Povoliť zložky Akcie
- Again, right-click (ctrl-click) that same folder and this time select Attach a Folder Action… Opäť, dobrý-cvaknúť (ctrl-click) rovnaké priečinku a tentoraz vyberte Pripoj zložky akcie ...
- You'll probably be presented with a list of scripts. Budete pravdepodobne ponúknutý zoznam skriptov. If you're not, you'll need to navigate to the folder that contains all of the Folder Action scripts. Ak nie ste, budete musieť prejsť do priečinka, ktorý obsahuje všetky zložky skriptov akcie. They're in Mac HD/Library/Scripts/Folder Action Scripts/. Sú v Mac HD / Library / Scripts / zložky Akcie Scripts /. Select Image – Duplicate as JPEG and then click Choose Zvoľte Obrázok - Duplicitné ako JPEG a potom kliknite na tlačidlo Zvoliť
- That's it. To je ono. Now drag a non-jpg picture into that folder (a PNG, GIF etc). Teraz pretiahnite non-jpg obrázok do tejto zložky (PNG, GIF, atd).
- Ta-da! Ta-da! The Folder Action will have duplicated your image, but this time as a JPG. Zložka akcia bude mať zdvojený vaše image, ale tentokrát ako JPG. It will also save the original image. Bude tiež uložiť pôvodný obrázok.
- If you ever want to change or disable a Folder Action, right-click (ctrl-click) the folder and choose Configure Folder Actions… Ak ste chceli zmeniť alebo zakázať zložky Akcie, dobrý-cvaknúť (ctrl-click) na zložku a vyberte položku Konfigurovať zložky akcie ...
- From here you'll be able to manage all of your Folder Actions in one place. Odtiaľ budete môcť riadiť všetky svoje zložky Akcia na jednom mieste.


click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie

click to enlarge kliknite pre zväčšenie


click to enlarge kliknite pre zväčšenie


Folder Action Resources Akcia zložky Zdroje
Here are some sites that provide pretty cool Folder Action scripts etc – Tu sú niektoré stránky, ktoré poskytujú docela v pohodě zložky Akcia skriptov atď --























{ 8 trackbacks } Spätné (8)
{ 19 comments… read them below or (19 komentáre ... prečítať nižšie alebo add one pridať jedno } )
cool chladný
Wonderful tip! Wonderful tip! I've been wondering what folder actions was about but never really had the time to figure it out. Bol som premýšľal, čo zložka akcia bola asi nikdy, ale naozaj mal čas na to prišiel. Thanks again! Thanks again!
I wish all tutorials were this clear! Želám všetkým cvičenie bolo to jasné! Excellent tip!!! Výborný tip!
JP, Filip and UT – JP, Filip a UT --
Glad to hear it helped!! To rád slyším to pomohlo!
Thanks for the great tip. Vďaka za skvelý tip. Is there a way for the music or movie folders to search the computer and add music/videos automatically? Existuje spôsob, ako hudbu alebo film zložky pre hľadanie počítač a pridať hudbu / video automaticky?
Great tutorial, this will help me out big time with workflow on my mac. Skvělý tutorial, pomôže mi veľký čas s workflow na môj mac.
Good info, thanks. Dobré info, vďaka.
Here's how to make a folder that mails files added to it to a preset address, useful for backing them up to Gmail. Tu je návod, ako urobiť, aby maily, súbory, priečinky, ktoré k nej, aby vopred adresu, užitočné pre zálohovanie na Gmail.
http://murphymac.com/files-mailed-magically-when-dropped-in-a-finder-folder/ http://murphymac.com/files-mailed-magically-when-dropped-in-a-finder-folder/
thank you very much. mockrát děkuji. You gave an easy explanation. Dal si jednoduché vysvetlenie.
Awesome. Desivý. Simple example which i was waiting to go though in years. Jednoduchý príklad, ktorý som čakal, ísť aj keď v rokoch.
Saludos: 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 me gustaría que alguien me Diga, cómo puedo hacer para que cuando alguien coloque un en un archivo zložky cualquiera, que este mi notifique o que sa aktívne si el mismo está abierto.
Gracias de antemano Gracias de antemano
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. Prosím, já bych si prial, aby mi niekto povedať, ako to mám urobiť, takže keď niekto dať súbor v zložke niekto, som si všimla, že ten či onen sa aktivuje, ak je otvorený.
Thanks in advanc Thanks in advance
Ok i give you thumbs up! Ok ja vám thumbs up!
Simple, easy and to the point. Jednoduchý, prehľadný a k veci. thank you thank you! děkuji děkuji! I couldn't find that information anywhere on apple's site. Nemohol som nájsť informácie, že nikde na stránkach Apple.
Thanks for your simple explanation of folder actions, and especially for the real world examples. Vďaka za vaše jednoduché vysvetlenie zložky akcií, a to najmä na skutočný svet príklady.
Great tip. Celok cíp. I will definitely give this a go on my iMac. Ja sa určite budú dávať to na svoj iMac.
Thanks for this tutorial. Thanks for this tutorial.
I would like to know what events may trigger a folder action. Chcel by som vedieť, aké udalosti môžu vyvolať zložky akcie. Unfortunately, I cannot find a reference manual, but it seems like that adding a file is the one and only event which can start a automator script. Bohužiaľ, nemôžem nájsť referenčnú príručku, ale zdá sa, ako že pridaním súbor je jediný jav, ktorý možno spustiť skript automatu.
My goal is to implement an action that fires if a folder is opened or closed from a remote host. Mojím cieľom je zaviesť opatrenia, ktoré prepustí, ak je zložka otvorené alebo zatvorené, zo vzdialeného hostiteľa. In this case, iTunesFS should launch. V tomto prípade by mala začať iTunesFS. If the connection is closed, the iTunesFS should get closed as well. Keď je spojenie je zatvorené, iTunesFS by mal dostať aj zatvorené. Any suggestons? Akýkoľvek suggestons?
Great script, especially the notify when new file placed in folder. Dokonalý scenár, najmä oznámiť, kedy nový súbor umiestnený v priečinku.
Can someone suggest a workaround for Leopard which doesn't allow you to send a fax, unless you disable 'Receive faxes on this computer'. Niekto môže navrhnúť riešenie pre Leopard, ktorý neumožňuje odoslať fax, ak zakážete 'Príjem faxov v počítači'. I suppose the steps for sending a fax would require the steps; Myslím, že kroky pre odoslanie faxu by vyžadovalo kroky;
- select file to be faxed - Vyberte súbor k faxu
- when 'Fax Pdf' is selected, script should 'deactivate receive fax on this computer' and save settings and close - Pri 'Fax PDF' je vybraná, skript by mal 'deaktivovať príjem faxov na tomto počítači' a uložte nastavenie a zatvorte
- fax should then send (hopefully) - By potom mal poslať fax (dúfajme)
- once fax has sent, then script should reinstate 'receive fax on this computer' setting. - Raz faxom poslal, potom sa skript by mal opäť 'príjem faxov na tomto počítači' nastavenia.
THanks all Thanks all
FJK FJK
I think you just invented the 30 hour day. Myslím si, že práve vymyslel 30 hodín denne. This is going to give me so much free time – thanks! Tohle mi toľko voľného času - vďaka!
Leave a Comment Zanechať komentár