Attach Folder Action Won't

When I right-click on a folder and choose "Attach a Folder Action..." from the contextual menu that appears, nothing happens. The only way to pull this off is to go into Folder Actions Setup app and add a folder (via the "+" button) and a script.
Any suggestions on what I may be missing?
Quad G5 (4x2.5G), 7800GT, 4.5GBram, BT&Airport   Mac OS X (10.4.5)  

Sorry if I wasn't clear enough. The problem I am experiencing is that, when I right-click on a folder and see the contextual menu that pops up, then choose either the "Configure Folder Actions..." item OR the "Attach a Folder Action..." item, nothing happens. The menu goes away, yes, but that's it. Am I not supposed to get a window allowing me to set the folder actions for the folder I right-clicked on?
If I run the "Folder Actions Setup" application, I can choose the folder I want to add an action to by clicking on the "+" button and navigating to the target folder, choosing it, then choosing the action I want (in the Folder Actions Setup window).
So, I CAN add an action to a folder and have it function properly. It's just that the contextual menu method ("Attach a Folder Action") seems to be broken.

Similar Messages

  • Automatically Attach Folder Action

    Is there a way to tell the OS to attach a folder action when the folder is created?
    I do not want to see the window sidebar, never, and I do not want to hide it each time I create a new folder. A very simple folder action does the job, but then it must be attached to the folder... and I would want to see this action automatically attached. The folder action could be as simple as that:
    on opening folder this_folder
    tell application "Finder"
    set the sidebar width of the window of this_folder to 0
    end tell
    end opening folder
    BTW, I didn't find any global variable that I could modify to do this in a simpler fashion.
    Not being an AppleScript expert and by far, I am kind of stuck...
    G5 1.8Dual, 2GB RAM   Mac OS X (10.4.8)   20" App Dsplay, ext. Lacie, iPod, Bach on Al-Lansing, Canon 5D, Canon L glass

    ... and it works!!!
    I will give you a "Solved on this", Budgie! This AppleScript language is pretty amazing when you know how to use it.
    I had to make some modifs, because it stopped working when the action was already attached to some folders, and this caused major problems. I will also have to work on it to optimize it, i.e. for example attach the action when a folder is opened (if it's not already attached) in order to save time, because in its present state, the script attaches the action to each folder in the target window.. But the main difficulty was to attach an action automatically!
    So now both scripts are in my own User library and look like this:
    Script to attach action, most of it your code :-)
    on adding folder items to this_folder
    try
    tell application "Finder"
    set _Script to "LaBomba:Users:rgauthier:Library:Scripts:Folder Action Scripts:nosidebar.scpt"
    repeat with each_folder in (get every folder of this_folder)
    tell application "System Events"
    try
    attach action to (each_folder as alias) using (_Script as alias)
    end try
    end tell
    end repeat
    end tell
    end try
    end adding folder items to
    ... and my own very simple folder action:
    on opening folder this_folder
    tell application "Finder"
    set the sidebar width of the window of this_folder to 0
    end tell
    end opening folder
    I will come back to you in a day or two (or three, time is whort...) with my final code.
    Thanks once again for a fast and precise answer!
    RTP
    G5 1.8Dual, 2GB RAM   Mac OS X (10.4.8)   20" App Dsplay, ext. Lacie, iPod, Bach on Al-Lansing, Canon 5D, Canon L glass

  • Automator folder action won't run entire folder contents

    Hi,
    Ok, I think I'm pretty well versed in Automator and getting things to work. But this is just escaping me.
    I've made a simple Photoshop Droplet (done this before). Open Automator, built a workflow for getting a folders contents and then opening the contents with the Droplet.
    Saved this as a folder action,...
    But when I drag multiple items to the folder, it only runs the very first item and stops,...
    If I drag one by one into the folder it will work fine,....
    I'm going to have to be dragging multiples all the time, it's a waste of time to do one by one,...
    I'm totally missing something here,.... please help!!
    I'd also like to move the contents of the folder, once the Droplet has run, to the trash
    But first I have to get this darn thing to run on the entire folders contents,.....
    Workflows I've tried:
    1 - Open finder Items (open in my Droplet) works one at a time
    2 - Get Specified Finder Items (point to my folder)
    Get Folder Contents
    Open finder Items (open in my Droplet) again, works one at a time
    Thanks!!
    Christopher

    Hi Curly, and a warm welcome to the forums!
    I don't know much about Automator, and this may be of no help, but...
    It's either just picking up/passing one variable, when it either needs an array of variables, or needs to loop back for the next one.

  • Folder action to find and replace text and change line feeds

    I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
    The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
    This text has to be removed (i.e. replaced by an empty string)
    The text occurs many times within each file.
    The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
    I have found the following two perl commands to achieve this:
    To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
    To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
    I know that it's possible to make a folder action with Automator that executes a shell script.
    What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
    My questions are:
    Is it possible to make a folder action that executes command line commands instead of shell scripts?
    What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
    Thanks for your help

    Ok, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line.  Depending on what you want to do, you may need multiple string on the bash command lines.  I've included some information on folder actions.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    How to set up a folder action.
    1) right click on folder. click on Enable folder actions
    2) Place script in
    /Library/Scripts/Folder Actions Scripts
    3) right click on folder. click on attach folder action
    pick your script.
    Create a new folder on the desktop & try.
    You can put multiple folder actions on a folder. There are other ways of doing this.
    Here is my test script:
    on adding folder items to this_folder after receiving dropped_items
        repeat with dropped_item_ref in dropped_items
           display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
        end repeat
    end adding folder items to
    How to  make the text into an AppleScript program.
    Start the AppleScript Editor
    /Applications/AppleScript/Script Editor.app
    In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
    Copy the script text to the Applescript editor.
    Note: The ¬ is typed as option+return.  ption+return is the Applescript line continuation characters.
    You may need to retype these characters.
    Save the text to a file as an script and do not check any of the boxes below.

  • Automator Folder Action

    I have an Automator Folder action attached to my Downloads folder which moves any .jpg file to another folder where I normally place my images. It works for a while (automatically moving the .jpg files whenever a file is placed in the Downloads folder) and then stops fopr no apparent reason. On occassion when I logoff and on or restart, the action will work for a limited time.
    I don't have much experience with Automator and even less with Applescript. Any help will be much appreciated.
    I use an iMac with OS X 10.9.2.
    Thanks.

    Sorry... this is not an answer to your problem. More like an addition to your question.
    How do you attach an Automator Workflow as a folder action?
    I've made a Workflow to copy all files from an iTunes' playlist to a USB device, I want it to automatically run whenever I plug in the USB device. I've left-clicked the icon for the USB device and then "attach folder action", but I don't see any script to run an Automator Workflow.

  • Folder action plug in not working

    Hi,
    Using Automator I created a workflow that filters .avi files, then opens tubitunes to convert them to .m4v
    When I run a test it works perfectly, but when I save it as a plug-in to the folder and drop an item in that folder, nothing happens.
    any help will be greatly appreciated

    Be sure your folder action script is saved into your /Library/Scripts/Folder Action Scripts folder. I'm new to these things, but I have a working script which I tried to enable using the Attach Folder Action option with the script saved on my desktop and it didn't work -- moving it into that folder above made it work, but I'm still having some issues.
    For me it seems that the Enable Folder Actions keeps disabling itself. My folder action works once (mine is launching VisualHub to convert videos to mp4) but doesn't work again. Checking on the status of the folder, it reads "Enable Folder Actions" again, which means it has been disabled.
    I'm running 10.5.4 on a Mac Pro. This was updated from a fresh 10.5.1 install.

  • Folder Actions Setup

    how can I get to this function?
    Please read...
    posted by  Frank Caggiano
    this should improve performance...
    Right click on the file and select Services from the menu then Folder Actions Setup
    This will open
    Check to see which (if any) folders have actions. If you didn;t turn it on intntionally disable it.

    Hi deltone,
    Although your product information says, "iMac 27", Mac OS X (10.6.8), 2.7 GHz Intel Core i5, 4GB 1333MHz", I'm guessing you are beyond that.   
    Here's why, folder actions have changed places.  Check out this help from others (thanks to Barney-15E, VikingOSX and ChangeAgent).
    Attaching folder action scripts not available i... | Apple Support Communities
    Best Regards,
    Nubz

  • Failed to attach workflow to "Downloads" as a folder action

    Hi, everyone
         I am trying to move the files and folders I get via AirDrop to a folder named AirDrop with automator. I use the following workflow
         Folder Action receives files and folders added to Downloads
         Get Specific Finder Items (Downloads)
         Get Folder Contents (Un-tick Repeat for Subfolder found)
         Filter Finder Item ( All of following are true : Name is not AirDrop )
         Move Finder Item ( To AirDrop : tick Replace existing files)
         It works perfectly fine when I tries to run it step by step or using Run button. But it doesn't work when I add a file or folder to the Downloads folder. So, I tried to remove the .workflow file from the Folder Actions and re-install it again. When I do that, this
    occurred.
         Please help me. Thanks in advance

    a rough draft of the script that answered my own question:
    tell application "Microsoft Word"
      activate
    end tell
    tell application "System Events"
      delay 0.5
      keystroke "a" using command down
      tell application process "Microsoft Word"
      click menu item "Page Setup..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
      click pop up button 3 of window "Page Setup"
      keystroke "Any"
      delay 0.5
      keystroke return
      delay 0.5
      keystroke return
      delay 1
      click menu item "Print..." of menu "File" of menu bar item "File" of menu bar 1
      delay 1
      tell menu button "PDF" of window "Print"
      click
      click menu item "Create Booklet" of menu 1
      end tell
      end tell
    end tell

  • Applescript won't function as folder action

    Hello There,
    Not long ago I discovered a script created by Matt Broughton that printed a file as RAW to a lpr printer. It solved a huge problem for me. It works well as a droplet, but I can't get it to function as a folder action. Here is the script:
    on open printJobs
    set trapFile to quoted form of POSIX path of (printJobs as string)
    do shell script "lp -d printerqueuename -o raw " & trapFile
    end open
    The goal is to be able to print multiple files. Either a droplet that can handle several items or a functioning folder script.
    After fooling around with this for a few months, I've discovered that I am a worthless scripter and can't manage to accomplish the goal.
    I will be blunt: I need the script written for me.
    Thanks for the help.

    Folder Action scripts need to include a very specific handler since that's what the OS will call when the action is invoked.
    So all you need to do is edit your script to put it in the appropriate handler.
    Right now it's using the 'open' handler, so will run based on files that are dropped on the script. That's not what you need here. As a folder action you need a 'on adding folder items to' handler since that's what's called when items are added to your folder, e.g:
    on adding folder items to the_folder after receiving the_files
      repeat with each_file in the_files
        set trapFile to quoted form of POSIX path of (each_file as text)
        do shell script "lp -d printerqueuename -o raw " & trapFile
      end repeat
    end adding folder items to
    Note the addition of a repeat loop which is needed since there may be multiple files added to the folder at once.

  • Downloads Folder Action

    Hello,
    I found a simple shell script that will help keep my Downloads folder organized by modification date. I used Automator to create a Finder Plug-In that's nothing but a Run Shell Script action: touch "$." Works great. I saved it as a folder action and attached it to my Downloads folder, but it won't work as a folder action. I added a Wait for Files to Copy action (testing with a pdf extension and download), and it still doesn't work. I tried to attach it to a dummy folder on my desktop that I directed Safari to save downloads to, still wouldn't work. I've saved it as a script, and attached it to the folder as a script, no joy. Will someone please help me with this. It should be very simple, I just want the items to be touched without having to touch each one myself.
    I have checked permissions on my user folder and Downloads folder, also deleted ~/Library/LaunchAgents/com.apple.FolderActions.enabled.plist and com.apple.FolderActions.folders.plist, logged out/in, disabled and re-enabled folder actions. Also, I have another folder action attached to my Downloads (Unquarantine), and it seems to work fine.
    Thanks in advance for any help,
    Jess

    I'm closing this question because the folder actions somehow work now. I must have shut down/started up enough times, or done something inadvertently to kick it into gear. I frequently have to check to make sure the folder actions are enabled, but other than that, my script works like a charm! Thanks for giving this your attention.
    Jess

  • Folder actions no longer functions in 10.6

    I have a folder action script that lauches Photoshop CS4 and saves an image in a series of sizes and formats. This worked well under Leopard but just does nothing under Snow Leopard.
    Folder actions is enabled and the script attached.

    Hi Arctic Ackbar,
    I too am having the same annoying issue after upgrading to 10.6 and it still continues to plague me even after the latest update to 10.6.1.7
    I don’t know if yours does the same but mine starts to download the maximum three items (if I have three or more but its the same even if downloading just two items) and it starts to download all three but then only downloads around say 100-200kB of the other two and waits for the first to finish, then moves onto one of the semi-downloaded items.
    It then repeats this for all the remaining items in the queue so in essence I might as well just un-tick the simultaneous download option as it seems to slow the one download and general bandwidth of my internet down.
    Lets hope it gets fixed in the next update, however I won't hold my breath

  • Folder actions question

    I would like a folder action that takes a file that I drag and drop to it to be attached to an email and sent to a specific recipient with out any further intervention
    Can that be done ??

    I had a bit of a problem with this but I think I've got it
    Create a new folder to contain your files - this seems to work best from the desktop
    In Automator use the Finder "Choose Folders" command and select the fiolder from the drop down, tick "return references to the folder contents"
    Drag Mail's "New Mail" command below and input the address you want in to the to section. Tick "attach items" , I can't get the "send mail' option to work here it always reports an address error for some reason, I have tried attaching the "Send Outgoing Mail" action to the end too, but this also won't work for me.
    Still it will at least create the message and only require you to press send - will investigate more and see if I can fix it.

  • From script to Folder Action?

    Sample script:
    tell application "Finder"
    set List1 to {"VNG", "COW", "SIN", "CVR", "CRM"}
    set List2 to {"VNG", "SIN"}
    set MissingList to {}
    repeat with i from 1 to count of List1
    if item i of List1 is not in List2 then
    set end of MissingList to item i of List1
    end if
    end repeat
    display dialog MissingList as text
    end tell
    Works, gives me what I want - answer as "COW, CVR, CRM"
    I make a Folder Action from it, like this:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    set List1 to {"VNG", "COW", "SIN", "CVR", "CRM"}
    set List2 to {"VNG", "SIN"}
    set MissingList to {}
    repeat with i from 1 to count of List1
    if item i of List1 is not in List2 then
    set end of MissingList to item i of List1
    end if
    end repeat
    display dialog MissingList as text
    end tell
    end adding folder items to
    Attach it to the folder, try - the answer comes as ""COWCVRCRM", without separating items in a list.
    Why?
    And, BTW, when I work with script I can see an Event Log in a Script Editor, but when Folder Action works - is there any way to see a Log?
    Thank you in advance for any help!
    Vera

    It may be that displaying the dialog via Script Editor instead of whatever app is frontmost when your folder action is triggered causes the difference. It's been known to happen. Try this in place of your code to display the dialog (untested code).
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #FF0000;
    width: 720px;
    color: #000000;
    background-color: #ffff99;
    overflow: auto;">
    set {oldDelims, my text item delimiters} to {my text item delimiters, {", "}}
    display dialog (items of MissingList) as text
    set my text item delimiters to oldDelims</pre>
    As for seeing your events, you can write code that can send some of it to a file on the desktop but you won't get all of it, mostly just error info. The best way I know of is to use [Script Debugger|http://www.latenightsw.com/sd4/index.html|http://www.latenightsw.com/s d4/index.html] from Late Night Software Ltd. It may seem expensive initially but it's worth every penny you'll spend on it. Note: the SD download is completely functional for 20 days after installation so you can give it a good workout. Its debugging environment will allow you to step through every line of code, see your variable results for each line and also concurrently view the event log.

  • Help with automator and folder actions please

    Hi all!
    I'd like to attach a folder action to a folder, so that any time i drag something in it, it'll be sent to my mobile phone.
    I just dont get it how to do it.
    Can please someone help? I'm totaly incapable of writing an applescript to do so...
    Best regards,

    Hi!
    So next step...
    I create a folder so and right-click "configure actions" (sorry my
    system is french so the terms are probably different on the US
    system....)
    Automator launches, and I add the push to BT part to my workflow. I save
    it all, and return to the finder.
    I right click on the folder, the script appears as it should.
    I click on the created script, a window opens with the device selection.
    I click OK. and get a message saying that this kind of file (a standard
    .sis file) won't be accpted from my device (a 6680 nokia). I click "try
    anyway", the window of file transfer opens, but I get the error
    "Transfer failed, operation not handled".
    I don't get it. Where did I go wrong?
    Thanx fo your feedback!

  • Processing a File (From a Folder Action) Through an AppleScript

    I have a Folder Action enabled which automatically uploads images placed in a folder to a FTP server. It works great when I'm at home on my own network, but if I'm somewhere with a firewall that prohibits connecting to my FTP server (i.e. work) or if I am not connected to the internet, the folder action will still run but my images will never get uploaded.
    I've attached a screenshot of my workflow. The folder action gets the image added to the folder, copies the original to a different folder, and then scales the image down to a smaller size before uploading it. I'm using the upload workflow action from Transmit.
    I figured I could use an AppleScript to check whether or not my computer can reach the ftp server and then wait until it was connected to run the rest of the workflow if it can't reach the server:
    repeat with i from 1 to 86400
        try
            do shell script "ping -o ftp.examplewebsite.com"
            exit repeat
        on error
            delay 5
            if i = 86400 then error number -128
        end try
    end repeat
    The only problem is, I'm pretty inexperienced with AppleScript and am not really sure how or where to insert it into my workflow to get the image to "pass through" the AppleScript. Currently, whenever I include this AppleScript in my workflow, before the Upload action, for example, the image ends up not getting passed through the AppleScript and it doesn't get uploaded as a result.
    Hopefully this a fairly simple question and someone can help me out, or if there's an easier way to delay running a folder action until I can connect to the server someone will let me know. I can clarify anything if necessary.

    Good job
    I just saw this…
    applescript in automator - stop a workflow
    It kills the workflow based on a test, so I tried this…
    Here is the text if you want to copy & paste. It will fail on Apple.com & stop the workflow. Success should allow it to continue.
    on run {input, parameters}
      try
      set pinged to do shell script "ping -c 3 -q  apple.com "
      if pinged is equal to 0 then
      return input
      end if
      on error
      error number -128 -- exit by user-cancel
      end try
    end run
    on run {input, parameters}
       display dialog "Rest of script will now continue..."
      return input
    end run

Maybe you are looking for