Folder Actions for OS X explained - with real-world examplesフォルダのための措置をOS Xの説明-現実世界の例

by Ross McKillop on January 30, 2007 ロスmckillop 上で 2007年1月30日

マック

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 現実世界の例

  • When you put images in a certain folder, they’re automatically converted to JPGときに、特定のフォルダ内の画像を、彼らは自動的に変換されjpg
  • When you put files in a certain folder, they’re automatically uploaded to a web serverときに、特定のフォルダ内のファイルを、彼らは自動的にアップロードしてウェブサーバー
  • When you close a Finder window, all the sub-folder windows close as well Finderウインドウを閉じるときには、すべてのサブもフォルダウィンドウを閉じる
  • When new files are placed in a certain folder, you’re notifiedときに新しいファイルが置かれ、特定のフォルダに、あなたの通知
  • When new files are placed in a certain folder (like your Desktop or download folder) they’re moved based on file typeときに新しいファイルが置かれ、特定のフォルダ(フォルダのようなあなたのデスクトップまたはダウンロード)ファイルの種類に基づいて彼らは移動
  • See more in theもっと見るには Folder Action Resourcesフォルダのアクションのリソース sectionセクション
  • How to enable and use Folder Actions フォルダの操作を有効にする方法と使用

    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).この例でお客様のフォルダを作成するアクションの画像をjpgフォーマットに変換してフォルダにドロップするだけで(この特定のフォルダに含まれるアクションはOS Xの)です。 Start by creating a new folder.スタート]ボタンを作成する新しいフォルダにコピーします。
    2. Now right-click (ctrl-click) on that new folder and select Enable Folder Actions今すぐ右クリックして( Ctrlを押しながらクリックして)新しいフォルダを選択し、そのフォルダの操作を有効に


    3. click to enlargeをクリックして拡大表示する

    4. Again, right-click (ctrl-click) that same folder and this time select Attach a Folder Action…再度、右クリック( Ctrlを押しながらクリックします)を同じフォルダに、この時点でフォルダを添付するアクションを選択し


    5. click to enlargeをクリックして拡大表示する

    6. 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/.彼らは、マックhd /ライブラリ/ Scripts /フォルダのアクションスクリプト/します。 Select Image - Duplicate as JPEG and then click Choose 画像を選択-重複としてのJ PEGと入力し、 [選択]をクリック


    7. click to enlargeをクリックして拡大表示する

    8. That’s it.これでおしまいです。 Now drag a non-jpg picture into that folder (a PNG, GIF etc).今すぐ以外のjpg画像をドラッグすると、そのフォルダ( PNG形式、 。等)です。
    9. Ta-da!ジャジャーン! The Folder Action will have duplicated your image, but this time as a JPG.フォルダのアクションのイメージは重複して、しかし、この時期としてjpgです。 It will also save the original image.それはまた、元の画像を保存します。


    10. click to enlargeをクリックして拡大表示する

    11. If you ever want to change or disable a Folder Action, right-click (ctrl-click) the folder and choose Configure Folder Actions…を変更したい場合は、フォルダのアクションまたは無効にするには、右クリック( Ctrlを押しながらクリックします) を構成するフォルダを選択しフォルダの行動…
    12. From here you’ll be able to manage all of your Folder Actions in one place.ここからすることができますフォルダ内のすべての行動を管理する1つの場所です。

    Folder Action Resources フォルダのアクションのリソース

    Here are some sites that provide pretty cool Folder Action scripts etc -ここではいくつかのフォルダを提供するサイトアクションスクリプト等かなりクール-

  • Auto-sort files dropped into the System Folder (like OS 9)並べ替えファイルの自動削除してこのシステムにフォルダ( OS 9のように)
  • Automatically add/import files to iTunes when they’re placed in a folder自動的に追加/ファイルをiTunesにインポートするときに彼らは、フォルダに配置さ
  • Upload files using Cyberduck when they’re placed in a folder彼らはCyberduckを使用してファイルをアップロードするときのフォルダに配置さ (Upload Sample.scpt) - read the readme.txt for more info (アップロードsample.scpt ) -を読むのR eadme.txtに関する詳しい情報
  • Use Folder Actions and Automator to keep your Desktop super-cleanフォルダの操作、およびAutomatorを使用してデスクトップのスーパー-清潔度を保つ
  • Automatically import (and tag) Photo Booth photos into iPhoto自動的にインポート(およびタグ)ブースの写真をiPhotoの写真
  • Writing Folder Action scriptsフォルダのアクションスクリプトを書く
  • [いる] [ del.icio.us ] [フェイスブック] [ Googleの]
    Related Posts: 関連記事:
  • An introduction to Real Desktop - a Windows Desktop replacementデスクトップの導入をリアルに-W indowsデスクトップの置き換え
  • Review: Apogee Search日:アポジ検索
  • Roundup: The Under-appreciated Postsラウンドアップ:記事を感謝されて-
  • How to add commands to the OS X “right-click” menuどのようにコマンドを追加するOS Xの"右クリック"メニュー
  • Best of Blog Action Day最高のブログ行動の日
  • { 6 trackbacks } 6トラックバック

    Jay’s Headspace - » Eager Beaver for 01/31/2007ジェイのヘッド-»頑張り屋の2 007年1月3 1日
    02.04.07 at 9:22 pm 02.04.07 9:22 pmの
    Folder Action for automated upload of Aperture web galleries at The Joy of Scriptingフォルダのアクションを自動アップロードの開口ウェブギャラリーは、スクリプトの喜び
    11.30.07 at 11:59 pm 11.30.07午後11時59分
    Final Cut Producer | Mac Folder Actions Explainedファイナルカットプロデューサー| Macのフォルダ操作説明
    03.04.08 at 6:19 am 03.04.08 6:19アム
    Looky: An AppleScript Folder Action utilizing Quick Look at The Joy of Scripting注意せよ:活用するAppleScriptフォルダのアクションスクリプトの喜びを素早く目を通す
    03.28.08 at 12:59 am 03.28.08 12:59アム
    AppleScript ::: Ignorantenprogramm released | macfidelity AppleScriptを: : : ignorantenprogrammリリース| macfidelity
    03.30.08 at 5:03 am 03.30.08は5:03アム
    Folder Actions for OS X explained (with real-world examples) | The Pengas Blogフォルダのための措置をOS Xの説明(現実世界の例を参照) | pengasブログ
    08.11.08 at 4:29 am 08.11.08は4:29アム

    { 12 comments… read them below or 12コメントしてください…読み取りまたは add one追加する }

    1 1 JP 01.31.07 at 3:52 pm jp 01.31.07 3:52 pmの

    cool涼しい

    2 2 Filip Lam フィリップラム 01.31.07 at 7:34 pm 01.31.07は7:34 pmの

    Wonderful tip!素晴らしいヒント! I’ve been wondering what folder actions was about but never really had the time to figure it out.私がずっと不思議にどのようなフォルダの行動は約しかし、決して本当には、時間を図てください。 Thanks again!再度ありがとう!

    3 3 UT 01.31.07 at 11:29 pm 01.31.07は11:29 pmの ユタ

    I wish all tutorials were this clear!このチュートリアルはすべてのお祈りをクリア! Excellent tip!!!素晴らしいヒント! ! !

    4 4 Nick ニック 01.31.07 at 11:42 pm 01.31.07は11:42 pmの

    JP, Filip and UT - JP 〒フィリップとユタ-

    Glad to hear it helped!!それを聞いて助けうれしい!

    5 5 Hani 02.16.07 at 7:35 am 02.16.07 7:35 AMの ハニ

    Thanks for the great tip.大きなヒントてくれてありがとう。 Is there a way for the music or movie folders to search the computer and add music/videos automatically?をする方法はある音楽や映画のフォルダを検索して追加するコンピュータと音楽/ビデオを自動的にですか?

    6 6 Andy アンディラウ 10.06.07 at 5:38 pm 10.06.07 5:38 pmの

    Great tutorial, this will help me out big time with workflow on my mac.素晴らしいチュートリアルでは、これは大きな時間を助けてくれないかなワークフローを私のmacです。

    7 7 Murphy マーフィー 11.13.07 at 9:24 pm 11.13.07は午後9時24分

    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/

    8 8 damn.hustle 12.10.07 at 2:36 pm 07/10/12は2:36 pmの damn.hustle

    thank you very much.本当にありがとうございます。 You gave an easy explanation.あなたは、簡単に説明します。

    9 9 Muthu ムトゥ 06.18.08 at 6:05 am 06.18.08 6:05 AMの

    Awesome.恐ろしい。 Simple example which i was waiting to go though in years.簡単な例を私は行くかかわらず、年間を待機しています。

    10 10 Emilio Marte 06.25.08 at 12:37 pm エミリオ 06.25.08は12:37 pmの マルテ

    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 que alguien私diga 、さまざまパラメータはcuando alguien cómo puedo coloque unのarchivoアン国連フォルダcualquiera 、それこの私notifiqueまたはque seアクティブsiエルmismo está abierto 。

    Gracias de antemanoよろしくお願いデantemano

    11 11 Emilio Marte 06.25.08 at 12:40 pm エミリオマルテ 06.25.08 at 12:40午後

    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

    12 12 frank フランク 07.04.08 at 11:49 pm 07.04.08は11:49 pmの

    Ok i give you thumbs up!オクラホマの意をあげるからね!

    Leave a Commentコメントを残す

    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> これらのHTMLタグを使用することができますと属性: <aのhref=のtitle= <abbrのtitle= <cite> <acronymのtitle= <b>ダウンロードの<code> <blockquote cite=""> <del datetime="">の<em> <i>て<strike> <strong> <q cite="">