What are Folder Actions? 什麼是文件夾的行動?
In a nutshell, Folder Actions are scripts that can be attached to folders.在簡單來說,文件夾的行動是劇本,可以附加文件夾。 They enable events (actions) to take place when items are added or removed from that folder.他們使事件(行動)採取地方項目時,添加或刪除從該文件夾。 Events can also occur when the folder is opened, closed or moved.事件也可以發生時,該文件夾的打開,關閉或遷移。

Real-World Examples 真實世界的例子
How to enable and use Folder Actions 如何啟用和使用文件夾操作
- 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).在這個範例中,我們將創建一個文件夾的行動,轉換圖像,以JPG格式只要拖放到一個文件夾(這個文件夾的行動,特別是包括與OS X的) 。 Start by creating a new folder.首先,創建一個新文件夾。
- Now right-click (ctrl-click) on that new folder and select Enable Folder Actions現在,右鍵單擊(按CTRL點擊)就認為,新的文件夾,然後選擇啟用文件夾的行動
- Again, right-click (ctrl-click) that same folder and this time select Attach a Folder Action…再次,右鍵單擊(按CTRL點擊)表示,同一文件夾中,這一次選擇附加一個文件夾的行動…
- You’ll probably be presented with a list of scripts.您可能會提交一份清單,腳本。 If you’re not, you’ll need to navigate to the folder that contains all of the Folder Action scripts.如果您不是,您需要瀏覽到該文件夾包含所有文件夾的行動腳本。 They’re in Mac HD/Library/Scripts/Folder Action Scripts/.他們在Mac房署/圖書館/腳本/文件夾的行動腳本/ 。 Select Image - Duplicate as JPEG and then click Choose選擇圖像-重複時如同J PEG文件,然後單擊選擇
- That’s it.就是這樣。 Now drag a non-jpg picture into that folder (a PNG, GIF etc).現在拖動一個非JPG格式圖片到該文件夾中(一巴紐, GIF和等) 。
- Ta-da!電訊管理局局長達! The Folder Action will have duplicated your image, but this time as a JPG.該文件夾的行動將有重複您的形象,但這個時候,作為一個JPG 。 It will also save the original image.它也將保存原始圖像。
- If you ever want to change or disable a Folder Action, right-click (ctrl-click) the folder and choose Configure Folder Actions…如果您想改變或禁用一個文件夾的行動中,右鍵單擊(按CTRL點擊)文件夾,並選擇配置文件夾的行動…
- From here you’ll be able to manage all of your Folder Actions in one place.從這裡您可以管理您所有的文件夾操作在同一個地方。




Folder Action Resources 文件夾的行動資源
Here are some sites that provide pretty cool Folder Action scripts etc -這裡有一些網站提供很酷的文件夾的行動腳本等-




















{ 6 trackbacks } ( 6 trackbacks )
{ 12 comments… read them below or ( 12評論…閱讀他們或低於 add one新增1 } )
cool涼爽的
Wonderful tip!精彩的秘訣! I’ve been wondering what folder actions was about but never really had the time to figure it out.我已經不知道是什麼文件夾操作約,但從來就沒有真正有時間,去揣摩吧。 Thanks again!再次感謝!
I wish all tutorials were this clear!我想所有的教程被這清楚! Excellent tip!!!優良的秘訣!
JP, Filip and UT -太平紳士,菲利普和UT斯達康-
Glad to hear it helped!!很高興聽到它幫助!
Thanks for the great tip.感謝偉大的秘訣。 Is there a way for the music or movie folders to search the computer and add music/videos automatically?有沒有辦法為音樂或電影文件夾,搜索電腦及添加音樂/視頻自動?
Great tutorial, this will help me out big time with workflow on my mac.偉大的補習,這將有助於我趕出大的時間與工作流程我的Mac上。
Good info, thanks.良好的信息,表示感謝。
Here’s how to make a folder that mails files added to it to a preset address, useful for backing them up to Gmail.這裡的如何使文件夾中的郵件文件添加到它預設的地址,有用的後盾,他們到Gmail 。
http://murphymac.com/files-mailed-magically-when-dropped-in-a-finder-folder/
thank you very much.非常感謝。 You gave an easy explanation.你給一件容易的解釋。
Awesome.可怕的。 Simple example which i was waiting to go though in years.簡單的例子,我正在等待去,雖然在年。
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.每間房有利於我gustaría闕alguien我diga ,如何購買puedo hacer第闕cuando alguien coloque聯合國文件為英文聯合國文件夾cualquiera ,闕埃斯特我notifique o闕硒積極矽下午mismo está abierto 。
Gracias de antemano格拉西亞德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.請我想看到有人告訴我,我如何能這樣做,當有人提出一個文件在一個文件夾中的人,我察覺到這個或那個被激活,如果它是開放的。
Thanks in advanc感謝在advanc
Ok i give you thumbs up!確定我給你豎起大拇指!
Leave a Comment留下意見