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.

Similar Messages

  • 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.

  • Action Set renamed - Now actions won't run

    I had a set of actions named "Kevin's Actions" to "Kevin's Actions CS5" (I have both CS5 and CS3 installed.
    However, when I tried to run actions that had references to an action entitled "Kevin's Actions" it wouldn't run. Seeing the problem I tried simply dropped the CS5 and renamed the action set BACK to the original "Kevin's Actions".
    THE PROBLEM: The actions still won't run.
    Is there a way to get them running again? I really don't wan to have to re-creating them ....????
    Thank,
    Kevin

    Hi guys,
    Below are screen shots of the first action in the set,  the First action it calls out and the error message I am receive. I checked spelling, spacing and capitalization and it all seems clean to me???? You'll probably have to enlarge these to see properly:

  • 9.0 Plugin Won't Run 8.5 Content

    Hello,
    I have developed a Flex Beta 2 application, which of coarse
    is compiled for the 8.5 viewer. The application will not run in the
    9.0 Flash plugin. The 9.0 plugin will run other older content, just
    not mine.
    Any sugestion?
    Thanks

    Yeah, they made it so that for each release you need to
    recompile for the current version. So swf files compiled with Beta
    2 don't run in the Beta 3 environment. You probably need to update
    your code as well to be Beta 3 compliant. The changes are all
    posted in the wiki section of the labs site.

  • Automator 2.2 Won't Run

    Automator 2.2 in Lion appears to be broken, at least on my Mac. It crashed shortly after launch and, of course, no workflows or apps will work. Is anyone else experiencing this? Is there a known fix?

    I'm frustrated that I'm unable to get Automator to function. Can we have a sporting chance at what hidden file it was that broke the previous post's app? It launches then says it's running but there are no menu items for Automator after the initial launch and attempt to select an action from the File menu: New.
    Brand new mac, new install of Lion.
    I'd love to get this working but I don't have 2 weeks to solve the problem with a specialist. Not sure how I'd even get their attention.

  • ITunes Music Folder Issue:  Won't Read External Folder?

    Hi There. Just bought a new Mac Mini and installed a time machine backup on to it to mirror it with my latest laptop settings. So far, everything has been breezy, except for iTunes. I have an external drive with about 200GB of music/movies that I want to use with the Mini. When in advanced iTunes preferences, I change the iTunes Music Folder location to that of the external drive and click "Change".
    I get no errors or anything, then iTunes tells me it is updating the library, but it is still the same old (internal) library. For the life of me, I cannot get it to change it to see my external. Any advice? I thought it might be an XML issue, so I moved the XML file but it didn't change anything. Is the "Add to Library" option my next best bet? I'm ok with that as long as it doesn't actually add the files to my internal hard drive and keeps all of the items sorted correctly. Is the last case scenario to reset iTunes? How would one do that? Any advice appreciated!

    When in advanced iTunes preferences, I change the iTunes Music Folder location to that of the external drive and click "Change".
    Okay. iTunes will use that folder for everything in the future. Anything added to iTunes will put into that folder if you have *Copy to iTunes music folder when adding to library* ticked.
    If there is any previous items in iTunes, it will continue to look for them where they were.
    I thought it might be an XML issue, so I moved the XML file but it didn't change anything.
    The .xml is generated by iTunes simply for other applications. iTunes does not use it at all.
    Is the "Add to Library" option my next best bet?
    It's the only option since this is how you add files to iTunes (along with Import when RIPping from CD).
    If you want to have the items in the new location in iTunes, you need to File -> Add to library and select the location on the external.
    I'm ok with that as long as it doesn't actually add the files to my internal hard drive
    See 1st comment in this response.
    and keeps all of the items sorted correctly
    Depends.
    The sort in iTunes is whaichever column you are selected on.
    If you are talking about the "sort" in the Finder/on the HD, then iTunes sorts by Artist/Album/Song name. If you do not want this, you need to to uncheck *Copy files to iTunes music folder when adding to library* and uncheck *Keep iTunes music folder organized*.

  • Automator shell script won't run

    Hi,
    I'm putting together a little Automator app that opens whenever I double-click on an .exe file and opens that file with wine. So far, however, I've had little luck. I've created a shell script automator app with the following script:
    for f in "$@"
    do
              /usr/local/bin/wine "$f" &
    done
    Outside of Automator the script works just fine. However, as an Automator app it doesn't work at all; nothing happens, even though Automator tells me that that the workflow was successfully completely. What am I doing wrong?
    Thanks,
    Alex

    Automator uses /bin/bash as the shell.
    Running your script interactive has a different environment from running under Automator.  For one thing, stdin/stdout/stderr are pointing to a tty (actually a pseudo device /dev/pty).  Perhaps this is affecting how Wine us behaving.
    Other issues might be where your current working directory is located, or some environment variable (such as PATH) that is not the same under Automator that exists when running interactively.
    You might try capturing things like
    ( printenv
      pwd
      id -a
      echo "\$# $#"
    ) >/tmp/automator.environment

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

  • How to set up Automator Folder Actions?

    I have set up and sucessfully tested a workflow which sends any file found in a particular folder to the "paperless" app, then moves all files to a different folder called "Archived attachments".
    HOWEVER as a folder action,  nothing happens when a file is put into the folder. The file just sits there in the folder.
    To create a folder action I opened  "new folder action" in Automator, then dragged and dropped the working workflow file into the workspace, then set "Folder Action recieves files and folders added to" the appropriate folder, let's call it "Attachments".
    Just to complicate things, the files are placed into the "Attachments" folder using an applescript that captures all pdf mail attachments. This applescript works succesfully.
    So, where could I be going wrong?
    The working workflow "Attachments.workflow" consists of:
    Get Specificed Finder Items
    Make Sequential
    Get Folder Contents
    Open Finder Items
    Get Folder Contwents
    Label Finder Items
    Get Folder Contents
    New Dated Folder
    The erronious Folder Action consists of:
    Run Workflow (Attachments)
    In folder actions setup:
    "Enable Folder Actions" is ticked
    "PDF Attachments" folder is ticked
    "Attachments_folder.workflow" script is on.

    I'm confused. You showed two Automator actions with the same name, one was a folder action one wasn't.
    Are you sure the correct Automator action (the one that is a folder action) is attached to the folder?
    If when the Folders Action setup window is opened and you select Articles_Folder.workflow and then edit script are you getting the right workflow?
    Assuming you do I would start off very simply. Try this:
    It will label green screen shot image files saved to the Desktop.
    See if this works for you.

  • Create folder action in automator

    I want to create a folder action that will move downloaded website backups into a specific folder.
    I cribbed the automator folder action shown below from Macworld
    The Folder Action appears not to work when left to just monitor the folder.
    However, if I force the Action to run from within automator it works, albeit with an error message at the beginning saying that you can't execute the action from within Automator. Still it finds the file and moves it to the intended destination.
    By way of checking this I looked at the "Set Up Folder Action" by right clicking on the downloads folder. After clicking there is a long delay but when the panel opens there is no content, see second image below. I tried clicking the + button to add the "Downloads" folder but after a long delay the "Open" dialog closes and nothing has appeared in the panel. I assume that any folder action should show up in this panel, but I've no experience in using it.
    Any suggestions as to a problem with the Action or why the panel is blank and why I can't attach the Action using this setup panel?
    Thanks
    Folder Action
    Note: Path and File have been omitted.
    Note: OS X 10.10.2
    Folder Action Setup

    I'm confused. You showed two Automator actions with the same name, one was a folder action one wasn't.
    Are you sure the correct Automator action (the one that is a folder action) is attached to the folder?
    If when the Folders Action setup window is opened and you select Articles_Folder.workflow and then edit script are you getting the right workflow?
    Assuming you do I would start off very simply. Try this:
    It will label green screen shot image files saved to the Desktop.
    See if this works for you.

  • 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.

  • Speeding Up Folder Actions (Automated Load/Unload Plist Help Needed)

    I am having trouble because we are using "Folder Actions", and they run very, very slowly. Sometimes they are instantaneous, but more often they can take as long as several minutes to trigger which is unacceptable. Apparently this is a known issue I've read about several places online. We are using Mac OS 10.6.4. I have read in this forum as well as elsewhere online that a fix is to do the following:
    You need to edit the file ~/Library/LaunchAgents/com.apple.FolderActions.folders.plist.
    If you're using a text editor you need to add the lines below before the </dict> line.
    <key>ThrottleInterval</key>
    <integer>0</integer>
    Apparently after you do this, you then need to "unload the plist in launchctl and load it again". Three questions...
    1) Please list exact steps... how does one "unload the plist in launchctl and load it again"?
    2) I also read, "as soon as you disable folder actions, log out, or restart, the plist file gets overwritten with a fresh copy that erases the fix." My second question is, therefore, how can one recreate this "fix" automatically and relaunch the fix every time the computer is booted and the folder actions are relaunched? Is there a way to do that with Applescript or some other method?
    3) Has anyone found a better "fix" so that folder actions run more quickly?
    Thanks for any input on this topic.

    I found a "solution" to the prior issue. The solution is to use the following...
    tell application "Folder Actions Dispatcher" to set polling interval to nnn
    Replace nnn with the desired polling interval, in seconds
    This caused a new issue which I will post about separately.

  • 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

  • Managing and distributing Folders with folder actions to a group of users?

    I want to set up a server for a camera club on a SnowLeo Server running on a MacMini. We want to collect images every month from users who want to participate in a club competition and are looking into the FileSharing service on the server to collect the images.
    My initial idea was to find a way of letting the Administrator automatically create folders with folder actions in every users home folder (i.e. "2010-April-Portraits"). After the user had uploaded images into it, the folder action would then rename, reformat and transport images into a central location to be processed further.
    Is this a good way of collecting data, and if yes - how do I let the Admin create and distribute these folders with the appropriate actions?
    Best regards,
    Kjell Are Refsvik
    Norway

    Hi,
    I want to purchase a Macmini with SL Server and create a photo competition solution for a camera club. The solution needs to be able to accept uploaded images and the solution needs to let the user associate a set of images to a competition and from there the solution needs to make sure that the filename, format, size and embedded metadata is correct before storing and processing them further. Friends I have talked to say I need a classic CMS solution so I may need to investigate instead of my planned AppleScript/Automator solution.
    Also - thank you for offering to develop, but I had kinda planned to do this myself to build some knowledge and also get to know the server better.
    Anyone else using the SnowLeo server for a solution like this?
    Kjell Are Refsvik
    Norway

  • Folder Actions not working

    I'm trying out folder actions for the first time, and I cannot get an action to trigger.
    I regularly use Automator, and I've saved a script as a Folder Action plug-in attached to a folder. I've tried this with several different scripts.
    For example, I've got a script that just displays a message. It works fine if I save it as an app, so I save it as a Plug In>Folder Action. If I select, say, my documents folder, I right click>more>attach a folder action. I then select my script. If I open the Folder Actions Setup, my script is listed as attached to my documents folder. However, if I drop a file into the Documents folder, nothing happens.
    Am I correct in thinking that the script should run when a file is dropped into the folder (and if I'm wrong, how would you do this?), or have I missed something?
    I'm using 2x 2,8GHz Quad-Core Intel Xeon Mac, OsX 10.5.6.
    Cheers
    Steve

    In the Finder (Mac) Help, every user may read:
    *+Running an automation when a folder is changed+*
    +Folder actions let you run automations when a folder is modified. For example, you could run an AppleScript or an Automator workflow whenever something is added to a dropbox folder.+
    +To use folder actions, you attach a folder action script or workflow to a folder. When the folder is opened, closed, or modified, the automation will be activated automatically.+
    +Your script must include a handler for each folder action command used.+
    +To make a folder action scripts available to all users of your computer, put them in the Folder Action Scripts folder located at:+
    +Library/Scripts/Folder Action Scripts/+
    +To make the scripts available only to the current user, put them in the home folder at:+
    +~/Library/Scripts/Folder Action Scripts/+
    *+To enable folder actions:+*
    +1. Open Folder Actions Setup in the Applications/AppleScript folder.+
    +2. Select Enable Folder Actions.+
    +3. Click the ╋ button below the Folders with Actions list and choose the folder containing the folder actions.+
    +4. Click the ╋ button below the Script list and select the desired scripts, then click Attach.+
    My guess is that you missed one of the four steps.
    Yvan KOENIG (from FRANCE vendredi 5 juin 2009 17:09:05)

Maybe you are looking for

  • ITunes Match says loading but then screen goes black and nothing happens

    I've just subscribed to iTunes Match so I can have my music on my new iPad mini and I got my housemate to switch it on in the iTunes on the computer at home with all the music on (I'm away for work) and when I enable iTunes Match and open music it sa

  • Changing Sync-to Machine?

    When I got my ipad I set it up to Sync apps to my office PC and all else to my MacPro at home. Now when I try to sync in either location it threatens me with warnings I don't fully understand about erasing any apps not in the computer's library. If I

  • Skip display of MD_MRP_LIST_OVERVIEW

    Hello. Please tell me if about how to skip the screen which get display when function module MD_MRP_LIST_OVERVIEW is used. This function module is used for TCODE- MD06 . I need to use the screen similiar to MD06 with less screen fields and then calli

  • Firefox will not load certain websites but IE will

    After upgrading to FF 29 I cannot access the addons and several other pages. Going to addons.mozilla.org or clicking the addons button gives me a bulleted list of links. Attempting to download an addon just says "Error Downloading" I can go to addons

  • Playing music across accounts?

    I asked this question last March when I first got my Mac, but no one had an answer. I'm posting again, since it's starting to become a point of contention between my wife and me. We've set up accounts for each of us on the Mac. Is there any way to co