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留下意见